#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <inttypes.h>
#include <errno.h>
#include <limits.h>
#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)) {