only use int random number for math.randomseed

[This commit was cherry-picked from
https://github.com/awesomeWM/awesome/pull/3124)
This commit is contained in:
multiSnow 2020-07-01 17:26:46 +08:00 committed by Uli Schlachter
parent cd79080e70
commit 1377880611
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ init_rng(void)
lua_getfield(L, -1, "randomseed");
/* Push a seed */
lua_pushnumber(L, g_random_int() + g_random_double());
lua_pushnumber(L, g_random_int());
/* Call math.randomseed */
lua_call(L, 1, 0);