X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/f9f25a36518274455212cf387599aa4e7bc2e0c8..486349a83f783742b9d148447c6119eb76d4ead0:/t/rng.c diff --git a/t/rng.c b/t/rng.c index e442d99..a827b2e 100644 --- a/t/rng.c +++ b/t/rng.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include @@ -75,11 +74,11 @@ static unsigned long long splitmix64(unsigned long long *state) #if !TEST_RNG_NO_EXTERNAL_API struct test_rng *test_rng_alloc(const char *seed_str) { + test_uintmax limit, seed_val; unsigned long long seed; - uintmax_t limit, seed_val; struct test_rng *rng; - limit = (uintmax_t)0xffffffff; + limit = 0xffffffff; limit |= (limit << 16 << 16); if (!test_strtoumax(&seed_val, seed_str, limit)) {