commit | 2c897d9d1bf25bef36f717edc6bbc38926ab8d91 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Aug 31 08:48:55 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Sep 08 15:06:11 2021 +0200 |
tree | c7a0adb8916a9e9f7cc76d5309e632d046dd95b1 | |
parent | df8eeb1619580a39dc4c3605cef472b10bb3386c [diff] |
MINOR: vars: preset a random seed to hash variables names Variables names will be hashed, but for this we need a random seed. The XXH3() algorithms is bijective over the whole 64-bit space, which is great as it guarantees no collision for 1..8 byte names. But above that even if the risk is extremely faint, it theoretically exists and since variables may be set from Lua we'd rather do our best to limit the risk of controlled collision, hence the random seed.