stress2: Revert change accidentally added in ff4a72c159
This commit is contained in:
parent
ad9cc86bf6
commit
d26c565597
|
@ -886,12 +886,11 @@ test(void)
|
||||||
{
|
{
|
||||||
unsigned long offset;
|
unsigned long offset;
|
||||||
unsigned long size = maxoplen;
|
unsigned long size = maxoplen;
|
||||||
unsigned long rv;
|
unsigned long rv = random();
|
||||||
unsigned long op = rv % (3 + !lite + mapped_writes);
|
unsigned long op = rv % (3 + !lite + mapped_writes);
|
||||||
|
|
||||||
/* turn off the map read if necessary */
|
/* turn off the map read if necessary */
|
||||||
|
|
||||||
arc4random_buf(&rv, sizeof(rv));
|
|
||||||
if (op == 2 && !mapped_reads)
|
if (op == 2 && !mapped_reads)
|
||||||
op = 0;
|
op = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue