diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-03-20 16:13:17 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-03-20 16:13:17 -0300 |
commit | 5a04f1851e0d42b4bcbb0af103490bc964e985aa (patch) | |
tree | 227f98d4fff3f1bd1eea4d20ddd4aa0ec7562ddd /lua.h | |
parent | 8c064fdc23bd745bbd3456a58cc9e2521f8e4263 (diff) | |
download | lua-5a04f1851e0d42b4bcbb0af103490bc964e985aa.tar.gz lua-5a04f1851e0d42b4bcbb0af103490bc964e985aa.tar.bz2 lua-5a04f1851e0d42b4bcbb0af103490bc964e985aa.zip |
New function 'luaL_makeseed'
This function unifies code from 'lua_newstate', 'math.randomseed',
and 'table.sort' that tries to create a value with a minimum level
of randomness.
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -160,7 +160,8 @@ extern const char lua_ident[]; | |||
160 | /* | 160 | /* |
161 | ** state manipulation | 161 | ** state manipulation |
162 | */ | 162 | */ |
163 | LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); | 163 | LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud, |
164 | unsigned int seed); | ||
164 | LUA_API void (lua_close) (lua_State *L); | 165 | LUA_API void (lua_close) (lua_State *L); |
165 | LUA_API lua_State *(lua_newthread) (lua_State *L); | 166 | LUA_API lua_State *(lua_newthread) (lua_State *L); |
166 | LUA_API int (lua_resetthread) (lua_State *L, lua_State *from); | 167 | LUA_API int (lua_resetthread) (lua_State *L, lua_State *from); |