lib/rand: fix bug with non uint64_t aligned random buffer fill
authorJens Axboe <axboe@fb.com>
Fri, 5 Dec 2014 17:48:01 +0000 (10:48 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 5 Dec 2014 17:48:01 +0000 (10:48 -0700)
commit6780906feec87dff250d618c46ce8b9580a25069
treee3d725b398a9e456584d96da31dd41e70c75cec6
parenta893c26129358a934767a92d487510c87c81dde8
lib/rand: fix bug with non uint64_t aligned random buffer fill

Now that we honor the compression percentage, we can easily
get buffer fills that are not aligned to uint64_t. Make
sure that __fill_random_buf() handles this correctly.

Signed-off-by: Jens Axboe <axboe@fb.com>
lib/rand.c