Re:Should random() be banned?
by tgsovlerkhgsel on Saturday February 13, 2021 @06:59PM
(#26128285)
Cryptography is rare, but generating other data that needs to be unpredictable (e.g. session IDs, password reset tokens, random passwords getting generated, gift card codes, real-money gambling numbers) is quite common, I think.
And the default implementation of random() doesn't seem to be any faster than AES-CTR (which is the core of one form of secure PRNG).
And the default implementation of random() doesn't seem to be any faster than AES-CTR (which is the core of one form of secure PRNG).