r/programming • u/txdv • Aug 16 '14
Linux adds getrandom
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895
143
Upvotes
r/programming • u/txdv • Aug 16 '14
View all comments
Show parent comment
3
u/happyscrappy Aug 16 '14
Yes. It could. If the program is getting the randomness, then it should do this.
But libraries may not get an opportunity to open a file descriptor early because they aren't called for the first time until later.
So I guess this would be their best (only?) defense against file descriptor exhaustion attacks.