[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Effects of Lua state random seed? (luai_makeseed in lstate.c)
- From: bil til <biltil52@...>
- Date: Thu, 24 Nov 2022 15:14:22 +0100
Am Do., 24. Nov. 2022 um 14:20 Uhr schrieb Gé Weijers <firstname.lastname@example.org>:
> The random seed produced by luai_makeseed is used to make the hash function that is used for strings unpredictable. The implementation of strings relies on this hash to produce nicely distributed values, and without some randomization an attacker could easily produce thousands of strings that all hash to the same value, which would cause very slow behavior for instance when they're used as table keys.
Interesting info from the "bad world of hacking" ... thank you... .