26 Feb
2026
26 Feb
'26
5:17 a.m.
On Thu Feb 26 07:38:26 2026 +0000, Hans Leidekker wrote:
Even if called once it can still fail. I think we should pass the error instead of asserting and give the app a chance to handle it. Likely only a few will actually check for errors from RtlGenRandom() but those that do will get a chance to clean up and notify the user. To be consistent with Windows behaviour, bcryptprimitives.dll could fail to load if it's not possible to get the `/dev/urandom` fd. This could be done by simply attempting to get some random data when in DllMain.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10174#note_130602