commit 1728f7ed8e96a03dd6a75c9668d394562ed63a59
parent 72de81e772b1c3a350c8265752ef91bab52741d1
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Wed, 27 Sep 2017 11:54:42 +0000
Comment fix (writing to /dev/urandom doesn't speed it up)
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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) ;