From d26c565597b88eb5c6000dbba9e348debe7095e3 Mon Sep 17 00:00:00 2001 From: Peter Holm Date: Sat, 15 Jun 2024 08:33:14 +0200 Subject: [PATCH] stress2: Revert change accidentally added in ff4a72c159e0 --- tools/test/stress2/misc/umountf2.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/test/stress2/misc/umountf2.sh b/tools/test/stress2/misc/umountf2.sh index cd5b53616f9..5018a804c40 100755 --- a/tools/test/stress2/misc/umountf2.sh +++ b/tools/test/stress2/misc/umountf2.sh @@ -886,12 +886,11 @@ test(void) { unsigned long offset; unsigned long size = maxoplen; - unsigned long rv; + unsigned long rv = random(); unsigned long op = rv % (3 + !lite + mapped_writes); /* turn off the map read if necessary */ - arc4random_buf(&rv, sizeof(rv)); if (op == 2 && !mapped_reads) op = 0;