changeset 7834 | 201d0df6cce9 |
parent 7833 | b9910a507250 |
child 7835 | d02ef0ae94af |
--- a/util-src/crand.c Sun Jan 22 09:32:33 2017 +0100 +++ b/util-src/crand.c Sun Jan 22 09:55:44 2017 +0100 @@ -34,7 +34,10 @@ #error getrandom() requires Linux 3.17 or later #endif -/* Was this not supposed to be a function? */ +/* + * This acts like a read from /dev/urandom with the exception that it + * *does* block if the entropy pool is not yet initialized. + */ int getrandom(void *buf, size_t len, int flags) { return syscall(SYS_getrandom, buf, len, flags); }