# HG changeset patch # User Kim Alvefur # Date 1485075352 -3600 # Node ID d02ef0ae94af8b31976fc195a80fe5817fdf331a # Parent 201d0df6cce96c62ffb80bb41249468cae79f463 util.crand: TODOs diff -r 201d0df6cce9 -r d02ef0ae94af util-src/crand.c --- 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;