This only applies to systems which actually use /dev/urandom.
The idea is to open the fd once, store it in sjs_vm_t and keep it around. Every time we need to read from it do a fstat and check the inode still matches. (This trick is what CPython does)
This only applies to systems which actually use /dev/urandom.
The idea is to open the fd once, store it in
sjs_vm_t
and keep it around. Every time we need to read from it do afstat
and check the inode still matches. (This trick is what CPython does)