1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

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

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;