MINOR: vars: preset a random seed to hash variables names
authorWilly Tarreau <w@1wt.eu>
Tue, 31 Aug 2021 06:48:55 +0000 (08:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2021 13:06:11 +0000 (15:06 +0200)
commit2c897d9d1bf25bef36f717edc6bbc38926ab8d91
treec7a0adb8916a9e9f7cc76d5309e632d046dd95b1
parentdf8eeb1619580a39dc4c3605cef472b10bb3386c
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.
src/vars.c