| author | |
| committer | |
| log | 4b0f77cc1f2f4939c59e92175f6e69394eb3bcef |
| tree | 33eb82fc75b6fd15fd3a386ed9912e60e13cf1d7 |
| parent | 84aac8b6c7721d53a93e636e803e867933ae6e99 |
Instead of hardcoding a call to defaultRandomSeed() use the customizable
std.options.cryptoRandomSeed() like in the rest of the function.
Closes #19943.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/crypto/tlcsprng.zig+1-1| ... | ... | @@ -53,7 +53,7 @@ fn tlsCsprngFill(_: *anyopaque, buffer: []u8) void { |
| 53 | 53 | // std.crypto.random always make an OS syscall, rather than rely on an |
| 54 | 54 | // application implementation of a CSPRNG. |
| 55 | 55 | if (std.options.crypto_always_getrandom) { |
| 56 | return defaultRandomSeed(buffer); | |
| 56 | return std.options.cryptoRandomSeed(buffer); | |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | if (wipe_mem.len == 0) { |