stress2: Revert change accidentally added in ff4a72c159

This commit is contained in:
Peter Holm 2024-06-15 08:33:14 +02:00
parent ad9cc86bf6
commit d26c565597
1 changed files with 1 additions and 2 deletions

View File

@ -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;