aboutsummaryrefslogtreecommitdiffstats
path: root/src/librandom/random_makeseed.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-01-21 15:46:20 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-01-21 15:46:20 +0000
commit2746b131aa482ac17c94bc6b82e58dbcc1b752cf (patch)
tree87e50c57bc8458b0809c280ab5d00042d1102925 /src/librandom/random_makeseed.c
parent05db4ba46ae1ca6143bb9b432d1e05e69eddd263 (diff)
downloadskalibs-2746b131aa482ac17c94bc6b82e58dbcc1b752cf.tar.gz
Types fix: librandom, libstdcrypto
Diffstat (limited to 'src/librandom/random_makeseed.c')
-rw-r--r--src/librandom/random_makeseed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librandom/random_makeseed.c b/src/librandom/random_makeseed.c
index 909e896..00def5b 100644
--- a/src/librandom/random_makeseed.c
+++ b/src/librandom/random_makeseed.c
@@ -1,6 +1,7 @@
/* ISC license. */
#include <unistd.h>
+#include <stdint.h>
#include <skalibs/uint32.h>
#include <skalibs/tai.h>
#include <skalibs/sha1.h>
@@ -19,7 +20,7 @@ void random_makeseed (char *s)
{
tain_t now ;
char tmp[256] ;
- uint32 x = getpid() ;
+ uint32_t x = getpid() ;
uint32_pack(tmp, x) ;
x = getppid() ;
uint32_pack(tmp + 4, x) ;