Comparison

util-src/crand.c @ 7820:8a9942086068

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 09 Jan 2017 10:17:39 +0100
parent 7818:54669df178c2
child 7823:9b66ada1487c
comparison
equal deleted inserted replaced
7817:4e3654031693 7820:8a9942086068
128 #endif 128 #endif
129 } 129 }
130 #endif 130 #endif
131 131
132 int luaopen_util_crand(lua_State *L) { 132 int luaopen_util_crand(lua_State *L) {
133 #if (LUA_VERSION_NUM > 501)
134 luaL_checkversion(L);
135 #endif
133 lua_newtable(L); 136 lua_newtable(L);
134 lua_pushcfunction(L, Lrandom); 137 lua_pushcfunction(L, Lrandom);
135 lua_setfield(L, -2, "bytes"); 138 lua_setfield(L, -2, "bytes");
136 #ifdef ENABLE_SEEDING 139 #ifdef ENABLE_SEEDING
137 lua_pushcfunction(L, Lseed); 140 lua_pushcfunction(L, Lseed);