aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/lib/prng.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mppa/lib/prng.c')
-rw-r--r--test/mppa/lib/prng.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/mppa/lib/prng.c b/test/mppa/lib/prng.c
index c902cc3e..dfa97834 100644
--- a/test/mppa/lib/prng.c
+++ b/test/mppa/lib/prng.c
@@ -9,13 +9,11 @@
static uint64_t current;
void srand(uint64_t seed){
- //seed = current;
- current=100;
+ seed = current;
}
uint64_t randlong(void){
- //return (current = MULTIPLIER * current + INCREMENT);
- return current--;
+ return (current = MULTIPLIER * current + INCREMENT);
}
#ifdef __UNIT_TEST_PRNG__