summaryrefslogtreecommitdiff
path: root/core/variant/variant_op.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-07 17:33:55 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-02-14 10:45:50 +0100
commit6b5634b96aa90ab2db7357b353fc8f96ad4878c5 (patch)
tree79683c4d2e538e5702a74a5b431a0913777ee0ed /core/variant/variant_op.cpp
parent8317753c24f6a05d4fdc8541fecf1cd2ec189b41 (diff)
[OS/Crypto] Add get_entropy to OS.
Implemented via `BCryptGenRandom` on Windows. Implemented via `getentropy` syscall when available. Implemented via `/dev/urandom` device as a fallback. The `/dev/urandom` fallback can be disabled via the `NO_URANDOM` build flag. Note: The HTML5 version relies on emscripten file system urandom device which itself uses the Crypto API when available or the plain old not crypto-safe `Math.random()` otherwise. Restore get_entropy.
Diffstat (limited to 'core/variant/variant_op.cpp')
0 files changed, 0 insertions, 0 deletions