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