News for hackers. Stuff that matters.
Re:Should random() be banned? by shadowgovt on Thursday February 11, 2021 @01:00PM (#26104902)
I agree, with the caveat that use of random for cryptography is actually a domain specific use case.

It's probably okay to leave the function as it is and just drill into people that if you're doing cryptography, you either need to know exactly what you're doing all the way down to the hardware or you need to leave it a task for somebody else more specialized than you. I, for one, never assume random() is cryptographically secure, but it might be because I grew up programming during the era where random was computed off of clock cycles since CPU startup because there wasn't much other cheap entropy to lay a hand on ("battery-backed onboard date clock?! Oh, look who has AKERS money!").

There are no comments on this comment yet.