Files
skynet/lualib-src
Bruce ae034cf692 fix: use same hash seed when creating VM for shared tables (#2122)
When creating a new Lua VM to load shared tables, use the same hash
seed from the parent VM instead of generating a new random seed.

Different VMs have different hash seeds, causing identical strings to
have different hash values. When looking up string keys in a shared
table from another VM, the hash-based bucket lookup fails because the
search key's hash doesn't match the stored key's hash.

Solution: Pass G(L)->seed to lua_newstate() instead of using
luaL_newstate() which generates a new random seed each time.
2025-12-24 19:27:20 +08:00
..
2023-03-21 21:37:03 +08:00
2022-04-07 17:22:32 +08:00
2024-07-24 11:55:05 +08:00
2025-10-16 23:10:14 +08:00
2022-04-07 17:22:32 +08:00
2020-10-10 19:19:33 +08:00
2020-10-10 19:19:33 +08:00
2021-01-11 10:54:34 +08:00
2022-09-04 14:22:13 +08:00
2022-04-07 15:19:53 +08:00
2016-05-06 20:10:11 +08:00