From 1728f7ed8e96a03dd6a75c9668d394562ed63a59 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 27 Sep 2017 11:54:42 +0000 Subject: Comment fix (writing to /dev/urandom doesn't speed it up) --- src/librandom/random_makeseed.c | 4 ++-- src/libstddjb/cdb_make.c | 2 +- 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) ; -- cgit v1.2.3