aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-01-11 08:20:11 +0000
committerRon Yorston <rmy@pobox.com>2023-01-11 08:20:11 +0000
commit4ea671b358ec15331a961be092a777c8a82d1642 (patch)
treedb30ad8df0749c9b43b2beadb6005f65f9466487 /arch
parent67fb94dea61e74da032a8f0c51fbf216ec47dadb (diff)
downloadbusybox-w32-4ea671b358ec15331a961be092a777c8a82d1642.tar.gz
busybox-w32-4ea671b358ec15331a961be092a777c8a82d1642.tar.bz2
busybox-w32-4ea671b358ec15331a961be092a777c8a82d1642.zip
win32: improve seeding of PRNGs
busybox-w32 provides two PRNG implementations which are used in the emulation of /dev/urandom. The ad hoc method of seeding them has been replaced by calls to RtlGenRandom. The documentation for RtlGenRandom indicates it has been deprecated in favour of CryptGenRandom. The documentation for the latter indicates it has been deprecated in favour of the 'Cryptography Next Generation APIs'. Nonetheless, RtlGenRandom remains available in every version of Windows since XP. In the unlikely event that RtlGenRandom fails simply use the current time as the seed. Saves 192 bytes in the default configuration.
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions