You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, we create a File from a raw fd. However, as this object is created on the stack, at the endo the function, the file will be dropped, and thus closed.
This means that on systems using a shared FD, the second call to getrandom will fail. This can be fixed by just storing a File instead of a RawFd in static memory.
The text was updated successfully, but these errors were encountered:
Here, we create a
File
from a raw fd. However, as this object is created on the stack, at the endo the function, the file will be dropped, and thus closed.This means that on systems using a shared FD, the second call to
getrandom
will fail. This can be fixed by just storing aFile
instead of aRawFd
in static memory.The text was updated successfully, but these errors were encountered: