]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Extends random.h: numeric types relaxed to compatible types (with 20670/head
authorJesse Williamson <jwilliamson@suse.de>
Thu, 1 Mar 2018 14:11:03 +0000 (06:11 -0800)
committerJesse Williamson <jwilliamson@suse.de>
Thu, 1 Mar 2018 14:20:46 +0000 (06:20 -0800)
commit337e98b938ff15af51df404ef24df185533d5c2a
tree551d026950a668833850762a791567a23a1edd8a
parentecadb2c85b5520a80b7d2e71d9244f3e8b9bcf17
Extends random.h: numeric types relaxed to compatible types (with
appropriate distributions), fixes 2-parameter calling convention;
OOP interface now publishes engine and device types and allows
appropriate seed types.

These changes are the result of direct experience porting Ceph
code away from rand(), and a prerequisite for that further porting.

Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
src/include/random.h
src/test/common/test_random.cc