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
6
u/muungwana Aug 16 '14
couldnt that be mitigated by opening the random number generator device at the initialization stage of the library and then holding on to the file descriptor?
It could also be more efficient as it will eliminate the need for open() and close() calls everytime random numbers are requested.