aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-03-20 16:13:17 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-03-20 16:13:17 -0300
commit5a04f1851e0d42b4bcbb0af103490bc964e985aa (patch)
tree227f98d4fff3f1bd1eea4d20ddd4aa0ec7562ddd /lua.h
parent8c064fdc23bd745bbd3456a58cc9e2521f8e4263 (diff)
downloadlua-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua.h b/lua.h
index cb32ec22..e950dfb4 100644
--- a/lua.h
+++ b/lua.h
@@ -160,7 +160,8 @@ extern const char lua_ident[];
160/* 160/*
161** state manipulation 161** state manipulation
162*/ 162*/
163LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); 163LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud,
164 unsigned int seed);
164LUA_API void (lua_close) (lua_State *L); 165LUA_API void (lua_close) (lua_State *L);
165LUA_API lua_State *(lua_newthread) (lua_State *L); 166LUA_API lua_State *(lua_newthread) (lua_State *L);
166LUA_API int (lua_resetthread) (lua_State *L, lua_State *from); 167LUA_API int (lua_resetthread) (lua_State *L, lua_State *from);