From 2b7fcfdb1365400e634dc4d41a4bcdc1eb29c4d8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 22 Jan 2017 09:55:44 +0100 Subject: util.crand: Comment about getrandom --- util-src/crand.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util-src/crand.c b/util-src/crand.c index aa3379c2..7dd71a92 100644 --- a/util-src/crand.c +++ b/util-src/crand.c @@ -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); } -- cgit v1.2.3