summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-08-10 09:51:49 -0600
committerJens Axboe <axboe@kernel.dk>2022-08-10 09:51:49 -0600
commit9dc528b1638b625b5e167983a74de4e85c5859ea (patch)
treef29cbc5318db77c3afd2d7a15f6a4e65c4dba917 /lib
parent6b2353c2771037ed798bfae363db2b4f11f77c42 (diff)
downloadfio-9dc528b1638b625b5e167983a74de4e85c5859ea.tar.gz
fio-9dc528b1638b625b5e167983a74de4e85c5859ea.tar.bz2
lib/rand: get rid of unused MAX_SEED_BUCKETS
It's only used to size the array, we don't need it. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib')
-rw-r--r--lib/rand.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/rand.c b/lib/rand.c
index 1ce4a849..0e787a62 100644
--- a/lib/rand.c
+++ b/lib/rand.c
@@ -112,12 +112,8 @@ void __fill_random_buf_small(void *buf, unsigned int len, uint64_t seed)
void __fill_random_buf(void *buf, unsigned int len, uint64_t seed)
{
-#define MAX_SEED_BUCKETS 16
- static uint64_t prime[MAX_SEED_BUCKETS] = {1, 2, 3, 5,
- 7, 11, 13, 17,
- 19, 23, 29, 31,
- 37, 41, 43, 47};
-
+ static uint64_t prime[] = {1, 2, 3, 5, 7, 11, 13, 17,
+ 19, 23, 29, 31, 37, 41, 43, 47};
uint64_t *b, *e, s[CONFIG_SEED_BUCKETS];
unsigned int rest;
int p;