[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: what is the role of the `seed` field in the Lua global state?
- From: Norman Ramsey <nr@...>
- Date: Tue, 10 Mar 2020 18:24:14 -0400
I've been poking at the implementation of Lua, and I've noticed that
in Lua 5.2, Lua's global state acquired a `seed` field. This field
is initialized at startup and never changes, and as far as I can
tell, it affects only the hash values of strings.
What does this seed accomplish? What problem does it solve?