Hi,
According to microsoft documentation at:
https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom
The function CryptGenRandom is deprecated, and may can be removed in future release.
This patch add support to use BCryptGenRandom.
BCryptGenRandom apparently works without having to set up an environment before calling.
The drawback, its change causes need to link to bcrypt.lib.
regards,
Ranier Vilela