News for hackers. Stuff that matters.
Re:Why you should, actually, rewrite some of it in Rust by cesarb on Wednesday July 12, 2017 @01:12PM (#14754343)
> `OsRng` in the rand crate (go ahead, try to write a function that safely reads urandom in C).

Nowadays, you should just call getentropy (http://man7.org/linux/man-pages/man3/getentropy.3.html) instead of trying to read from /dev/urandom, unless you have special requirements.

Re:Why you should, actually, rewrite some of it in Rust by dbaupp on Wednesday July 12, 2017 @03:36PM (#14755863)
Great example! OsRng will use that system call, if it is available.