News for hackers. Stuff that matters.
Re:The everything-is-a-file principle – Linus Torvalds by 21 on Saturday July 14, 2018 @05:06PM (#17532384)
Let's not forget the massive pain that /dev/urandom being a file was, that they had to add a syscall for it: getrandom()
Re:The everything-is-a-file principle – Linus Torvalds by Aaron1011 on Saturday July 14, 2018 @05:51PM (#17532586)
I thought that the issue with /dev/urandom was that it wouldn't block when read shortly after startup (when the entropy pool wasn't yet initialized).
Re:The everything-is-a-file principle – Linus Torvalds by mmebane on Saturday July 14, 2018 @06:37PM (#17532766)
That's part of it. Another concern was ensuring that fetching a random number couldn't fail due to file descriptor exhaustion. [1]

[1]: https://lwn.net/Articles/605828/

Re:The everything-is-a-file principle – Linus Torvalds by hsivonen on Sunday July 15, 2018 @10:22AM (#17535353)
Likewise, it would be nice if on ARMv7 one could figure out if NEON is available without having to have permission to open a file under /proc.