Commit 4b0f77cc1f
Changed files (1)
lib
std
crypto
lib/std/crypto/tlcsprng.zig
@@ -53,7 +53,7 @@ fn tlsCsprngFill(_: *anyopaque, buffer: []u8) void {
// std.crypto.random always make an OS syscall, rather than rely on an
// application implementation of a CSPRNG.
if (std.options.crypto_always_getrandom) {
- return defaultRandomSeed(buffer);
+ return std.options.cryptoRandomSeed(buffer);
}
if (wipe_mem.len == 0) {