This change only partially resolves #32391 and is a follow-up to #14089.
The old randomness API has been deprecated and will be removed at some point.1
For reference on BCryptGenRandom
, see: https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom.
STATUS_SUCCESS
gets defined here since including ntstatus.h
is more trouble than it’s worth.