[Date Prev][Date Next][Thread Prev][Thread Next]
- 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:
> 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.