aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/crand.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-01-22 09:55:52 +0100
committerKim Alvefur <zash@zash.se>2017-01-22 09:55:52 +0100
commit8bcfc383748488c26c854a034db42c9e31674823 (patch)
tree62964f884a4f0e81656b15c1cfd663c845f6047f /util-src/crand.c
parent2b7fcfdb1365400e634dc4d41a4bcdc1eb29c4d8 (diff)
downloadprosody-8bcfc383748488c26c854a034db42c9e31674823.tar.gz
prosody-8bcfc383748488c26c854a034db42c9e31674823.zip
util.crand: TODOs
Diffstat (limited to 'util-src/crand.c')
-rw-r--r--util-src/crand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-src/crand.c b/util-src/crand.c
index 7dd71a92..cc2047eb 100644
--- a/util-src/crand.c
+++ b/util-src/crand.c
@@ -72,6 +72,7 @@ int Lrandom(lua_State *L) {
if(ret == 1) {
ret = len;
} else {
+ /* TODO ERR_get_error() */
lua_pushstring(L, "RAND_bytes() failed");
return lua_error(L);
}
@@ -100,7 +101,7 @@ int luaopen_util_crand(lua_State *L) {
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;