mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Overhaul process spawning
This commit is contained in:
parent
99dc1281f5
commit
26e254fb4d
96 changed files with 1848 additions and 1541 deletions
|
@ -24,7 +24,7 @@
|
|||
void InitializeRng(mbedtls_ctr_drbg_context *r) {
|
||||
unsigned char b[64];
|
||||
mbedtls_ctr_drbg_init(r);
|
||||
CHECK(getrandom(b, 64, 0) == 64);
|
||||
CHECK(!mbedtls_ctr_drbg_seed(r, GetEntropy, 0, b, 64));
|
||||
getrandom(b, 64, 0);
|
||||
mbedtls_ctr_drbg_seed(r, GetEntropy, 0, b, 64);
|
||||
mbedtls_platform_zeroize(b, 64);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue