summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-09-27 11:54:42 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-09-27 11:54:42 +0000
commit1728f7ed8e96a03dd6a75c9668d394562ed63a59 (patch)
tree32f2dea5d2db589d69478ddb47c4de9f92591124
parent72de81e772b1c3a350c8265752ef91bab52741d1 (diff)
downloadskalibs-1728f7ed8e96a03dd6a75c9668d394562ed63a59.tar.xz
Comment fix (writing to /dev/urandom doesn't speed it up)
-rw-r--r--src/librandom/random_makeseed.c4
-rw-r--r--src/libstddjb/cdb_make.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librandom/random_makeseed.c b/src/librandom/random_makeseed.c
index 00def5b..61244c6 100644
--- a/src/librandom/random_makeseed.c
+++ b/src/librandom/random_makeseed.c
@@ -9,8 +9,8 @@
/*
Writes 160 bytes of crap into s.
Certainly not cryptographically secure or 100% unpredictable,
- but we're only using this to speed up /dev/urandom
- initialization or to init an internal SURF PRNG.
+ but we're only using this to help shuffle the entropy of
+ /dev/urandom or to init an internal SURF PRNG.
iow: we are CS iff the system's RNG is CS.
*/
diff --git a/src/libstddjb/cdb_make.c b/src/libstddjb/cdb_make.c
index 930d69e..53e64b1 100644
--- a/src/libstddjb/cdb_make.c
+++ b/src/libstddjb/cdb_make.c
@@ -19,7 +19,7 @@ int cdb_make_start (struct cdb_make *c, int fd)
return 0 ;
}
-static int posplus (struct cdb_make *c, uint32 len)
+static int posplus (struct cdb_make *c, uint32_t len)
{
uint32_t newpos = c->pos + len ;
if (newpos < len) return (errno = ENOMEM, 0) ;