Changeset

7832:d02ef0ae94af

util.crand: TODOs
author Kim Alvefur <zash@zash.se>
date Sun, 22 Jan 2017 09:55:52 +0100
parents 7831:201d0df6cce9
children 7833:94c0c8649826
files util-src/crand.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/crand.c	Sun Jan 22 09:55:44 2017 +0100
+++ b/util-src/crand.c	Sun Jan 22 09:55:52 2017 +0100
@@ -72,6 +72,7 @@
 	if(ret == 1) {
 		ret = len;
 	} else {
+		/* TODO ERR_get_error() */
 		lua_pushstring(L, "RAND_bytes() failed");
 		return lua_error(L);
 	}
@@ -100,7 +101,7 @@
 	lua_setfield(L, -2, "_source");
 
 #if defined(WITH_OPENSSL) && defined(_WIN32)
-	/* Do we need to seed this on Windows? */
+	/* TODO Do we need to seed this on Windows? */
 #endif
 
 	return 1;