diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-09-27 11:54:42 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-09-27 11:54:42 +0000 |
commit | 1728f7ed8e96a03dd6a75c9668d394562ed63a59 (patch) | |
tree | 32f2dea5d2db589d69478ddb47c4de9f92591124 /src | |
parent | 72de81e772b1c3a350c8265752ef91bab52741d1 (diff) | |
download | skalibs-1728f7ed8e96a03dd6a75c9668d394562ed63a59.tar.xz |
Comment fix (writing to /dev/urandom doesn't speed it up)
Diffstat (limited to 'src')
-rw-r--r-- | src/librandom/random_makeseed.c | 4 | ||||
-rw-r--r-- | 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) ; |