summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-07-01 15:03:39 -0600
committerJens Axboe <axboe@kernel.dk>2022-07-01 15:03:39 -0600
commitdc4729e3ef6a9116d7cd30e96e4f5863883e5bd7 (patch)
treea0f44d80bf8539a1529c88d59263d0402ff04d14 /lib
parentaa75fc9db6b98ad317911b35b4a968139a648bb8 (diff)
downloadfio-dc4729e3ef6a9116d7cd30e96e4f5863883e5bd7.tar.gz
fio-dc4729e3ef6a9116d7cd30e96e4f5863883e5bd7.tar.bz2
hash: cleanups
- Use __hash_u64() for __fill_random_buffer() - Convert rdma to use GOLDEN_RATIO_64 That's the last user of GOLDEN_RATIO_PRIME, which due to bit sparseness isn't really useful for our purposes. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib')
-rw-r--r--lib/rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rand.c b/lib/rand.c
index 1df1a7a0..1e669116 100644
--- a/lib/rand.c
+++ b/lib/rand.c
@@ -103,7 +103,7 @@ void __fill_random_buf(void *buf, unsigned int len, uint64_t seed)
for (; b != e; ++b) {
*b = seed;
- seed *= GOLDEN_RATIO_64;
+ seed = __hash_u64(seed);
}
if (fio_unlikely(rest))