[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: what is the role of the `seed` field in the Lua global state?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 11 Mar 2020 09:57:06 -0300
> > What does this seed accomplish? What problem does it solve?
> >
>
> I suspect it is related to this:
> https://stackoverflow.com/questions/9241230/what-is-murmurhash3-seed-parameter/9241429#9241429
>
> attackers may use the properties of a hash function to construct a denial
> > of service attack. They could do this by providing strings to your hash
> > function that all hash to the same value destroying the performance of your
> > hash table. But if you use a different seed for each run of your program,
> > the set of strings the attackers must use changes.
Exactly.
-- Roberto