diff options
| author | Frans Kaashoek <kaashoek@mit.edu> | 2022-08-25 13:52:48 -0400 |
|---|---|---|
| committer | Frans Kaashoek <kaashoek@mit.edu> | 2022-08-25 13:52:48 -0400 |
| commit | 0c477a6c84091415efe2ac15509adc4b518bd7ea (patch) | |
| tree | 32cacc69f57fec08a7f543b6671c89cf7571d530 /user/grind.c | |
| parent | 7d47335b4f955fd93d2acaef745add723bc7f7d0 (diff) | |
| parent | 3d6ce9b308399f8c49c13653bd4ac21ca2311f26 (diff) | |
| download | xv6-labs-2022-0c477a6c84091415efe2ac15509adc4b518bd7ea.tar.xz xv6-labs-2022-0c477a6c84091415efe2ac15509adc4b518bd7ea.zip | |
Merge branch 'riscv' into util
Diffstat (limited to 'user/grind.c')
| -rw-r--r-- | user/grind.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/user/grind.c b/user/grind.c index 5cd89f4..431ed19 100644 --- a/user/grind.c +++ b/user/grind.c @@ -305,7 +305,7 @@ iter() exit(1); } if(pid1 == 0){ - rand_next = 31; + rand_next ^= 31; go(0); exit(0); } @@ -316,7 +316,7 @@ iter() exit(1); } if(pid2 == 0){ - rand_next = 7177; + rand_next ^= 7177; go(1); exit(0); } @@ -346,5 +346,6 @@ main() wait(0); } sleep(20); + rand_next += 1; } } |
