fix: was not multiplying by byte size of ull
This commit is contained in:
@@ -57,7 +57,7 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// populate the array with random data
|
// 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", );
|
error(1, "failed to acquire random data!\n", );
|
||||||
|
|
||||||
// perform for the input count
|
// perform for the input count
|
||||||
|
|||||||
Reference in New Issue
Block a user