News for hackers. Stuff that matters.
Re:Should random() be banned? by matthewdgreen on Thursday February 11, 2021 @09:42PM (#26110198)
Some standard uuid libraries have weird not-very-random fallbacks when the RNG fails to initialize. It’s rare, but you can get strange stuff without realizing it. Better to use a real RNG and check error codes.
Re:Should random() be banned? by hombre_fatal on Friday February 12, 2021 @05:07AM (#26112085)
Yep, there's no rule of thumb that can spare you from reading the docs and knowing basic things about the code you're about to pull in.