rand: cleanup rand_between() and helpers
authorJens Axboe <axboe@kernel.dk>
Tue, 12 Jun 2018 14:42:49 +0000 (08:42 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Jun 2018 14:48:55 +0000 (08:48 -0600)
commit1bd5d21380cdafe36db5a8945fb7c755d8ce3d43
tree2084c6e799a15e345f2cef60f7c7143b8f35dbf5
parent56c77c10f79d7be492aa0fb137786978c3596682
rand: cleanup rand_between() and helpers

Make the 32/64-bit helper just return a random number up to a certain
value, and let the generic helper handle the range part.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/sync.c
io_u.c
lib/rand.h
t/gen-rand.c