diff options
author | Cyril SIX <cyril.six@kalray.eu> | 2018-04-17 15:33:14 +0200 |
---|---|---|
committer | Cyril SIX <cyril.six@kalray.eu> | 2018-04-17 15:33:14 +0200 |
commit | 1b8cf73abc25b1bb167db770a622704f0d672691 (patch) | |
tree | 50582ad9bde220947d3b30d3262d314fb27bb554 /test/mppa/lib/prng.c | |
parent | eb1e1c79fa3fc882b68c67d781f7b64e74e00828 (diff) | |
download | compcert-kvx-1b8cf73abc25b1bb167db770a622704f0d672691.tar.gz compcert-kvx-1b8cf73abc25b1bb167db770a622704f0d672691.zip |
MPPA - added merge sort + corrected bug in insertion + testing them together
Diffstat (limited to 'test/mppa/lib/prng.c')
-rw-r--r-- | test/mppa/lib/prng.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/mppa/lib/prng.c b/test/mppa/lib/prng.c index dfa97834..c902cc3e 100644 --- a/test/mppa/lib/prng.c +++ b/test/mppa/lib/prng.c @@ -9,11 +9,13 @@ static uint64_t current; void srand(uint64_t seed){ - seed = current; + //seed = current; + current=100; } uint64_t randlong(void){ - return (current = MULTIPLIER * current + INCREMENT); + //return (current = MULTIPLIER * current + INCREMENT); + return current--; } #ifdef __UNIT_TEST_PRNG__ |