From e18e9b02978d55783fb1e72268a83327009f3ae5 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 19 Jun 2025 22:58:35 +0200 Subject: [PATCH] fix: was not multiplying by byte size of ull --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index e1bce43..a443ba4 100644 --- a/src/main.c +++ b/src/main.c @@ -57,7 +57,7 @@ int main(int argc, char** argv) { } // populate the array with random data - if (getrandom(rdat->dat, c + !!mod, 0) < 0) + if (getrandom(rdat->dat, (c + !!mod) * sizeof(ull), 0) < 0) error(1, "failed to acquire random data!\n", ); // perform for the input count