WSL 中 /dev/random 和 /dev/urandom 的熵是哪里来的
WSL 中 /dev/random 和 /dev/urandom 的熵是哪里来的
GitHub 上已经讨论过这个问题:Does WSL provide decent entropy? ᴮᵃᶜᵏᵘᵖ。
其中 WSL 开发人员 @benhillis 给出回复:
@evancox10- Great question. We use the BCryptGenRandom API in our driver to generate random bytes for thegetrandomsyscall as well as/dev/randomand/dev/urandom.
所以 WSL 中 getrandom、/dev/random 和 /dev/urandom 的熵是来自 Windows 的,而不是 Linux 内核收集的。
