From 622a211d4ebd47feb4d2c7dfe590d10c6d6ae834 Mon Sep 17 00:00:00 2001 From: Cyril SIX Date: Fri, 9 Nov 2018 15:19:04 +0100 Subject: Fixing PRNG test --- test/mppa/lib/prng.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/mppa/lib/prng.c b/test/mppa/lib/prng.c index 59ec7ca6..af3903d6 100644 --- a/test/mppa/lib/prng.c +++ b/test/mppa/lib/prng.c @@ -29,14 +29,11 @@ char bytewise_sum(uint64_t to_check){ int main(void){ srand(42); - if (bytewise_sum(0xdeadbeefb00b1355ULL) != 91) - return 1; - for (int i = 0 ; i < 1000 ; i++) randlong(); uint64_t last = randlong(); - return !((unsigned char)bytewise_sum(last) == 251); + return !((unsigned char)bytewise_sum(last) == 155); } #endif // __UNIT_TEST_PRNG__ -- cgit