summaryrefslogtreecommitdiff
path: root/src/librandom
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-10-14 17:39:55 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-10-14 17:39:55 +0000
commit3501ef1df11ec63fb4cddbbd4e756f374dd71ae4 (patch)
treed81ad2cf1b9dfc47ac8be2b73f4060cccdfc243a /src/librandom
parent46886111a32cfde5b6bb23622c1f09cf0189dc22 (diff)
downloadskalibs-3501ef1df11ec63fb4cddbbd4e756f374dd71ae4.tar.xz
Add a cast to arc4random_addrandom invocation to make clang happy
Diffstat (limited to 'src/librandom')
-rw-r--r--src/librandom/random_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librandom/random_init.c b/src/librandom/random_init.c
index a26217f..18bb8fa 100644
--- a/src/librandom/random_init.c
+++ b/src/librandom/random_init.c
@@ -12,7 +12,7 @@ int random_init ()
{
char seed[160] ;
random_makeseed(seed) ;
- arc4random_addrandom(seed, 160) ;
+ arc4random_addrandom((unsigned char *)seed, 160) ;
return 1 ;
}