Overhaul process spawning

This commit is contained in:
Justine Tunney 2023-09-10 08:12:43 -07:00
parent 99dc1281f5
commit 26e254fb4d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
96 changed files with 1848 additions and 1541 deletions

View file

@ -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);
}