-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to get the global g
state from the initialization of the RNG device.
#138
Comments
I'm not sure I understand what you try to achieve here, sorry. Could you elaborate on the use case you have in mind? |
So, I have an application (functorized over the More concretely, a SMTP submission service needs Of course, I can rely on the global state but I lost the ability to fully control the behavior of my application. |
hmm, I fail to understand your requirement. do you need to preserve the generator state for later (potentially a restart)? Indeed, In other applications (see the X509 code as well) I've just used an optonal |
Currently, with MirageOS, it's not possible to get the
g
state from the initialization (and be able to pass it to some others computations). It should be very nice for theinitialize
function to return theg
state - and then, get it from thestart
function of an unikernel instead of anunit
value. WDYT? The patch should be small but I think it breaks the API.The text was updated successfully, but these errors were encountered: