diff options
Diffstat (limited to 'test/mppa/lib')
-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__ |