git: d26c565597b8 - main - stress2: Revert change accidentally added in ff4a72c159e0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 15 Jun 2024 06:36:23 UTC
The branch main has been updated by pho:
URL: https://cgit.FreeBSD.org/src/commit/?id=d26c565597b88eb5c6000dbba9e348debe7095e3
commit d26c565597b88eb5c6000dbba9e348debe7095e3
Author: Peter Holm <pho@FreeBSD.org>
AuthorDate: 2024-06-15 06:33:14 +0000
Commit: Peter Holm <pho@FreeBSD.org>
CommitDate: 2024-06-15 06:33:14 +0000
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 cd5b53616f97..5018a804c403 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;