diff options
Diffstat (limited to 'components/entropy.c')
-rw-r--r-- | components/entropy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/entropy.c b/components/entropy.c index 7f6112e..5173f15 100644 --- a/components/entropy.c +++ b/components/entropy.c @@ -8,14 +8,14 @@ const char * entropy(void) { - uint64_t num; + uintmax_t num; if (pscanf("/proc/sys/kernel/random/entropy_avail", - "%" PRIu64, &num) != 1) { + "%" PRIuMAX, &num) != 1) { return NULL; } - return bprintf("%" PRIu64, num); + return bprintf("%" PRIuMAX, num); } #elif defined(__OpenBSD__) const char * |