X-Git-Url: https://bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=inc%2Fbearssl_ssl.h;h=6640bc651848d7a9924681e87661ba0814f09dbc;hp=45ac5994e9dd36cf54b5f141a83540df368825aa;hb=af9c79a0710a45361f9ae4313f8bb5bf738c3b7a;hpb=5414fd525e903fe65e372735f106dcdc19109aad diff --git a/inc/bearssl_ssl.h b/inc/bearssl_ssl.h index 45ac599..6640bc6 100644 --- a/inc/bearssl_ssl.h +++ b/inc/bearssl_ssl.h @@ -833,6 +833,14 @@ typedef struct { /* * Context RNG. + * + * rng_init_done is initially 0. It is set to 1 when the + * basic structure of the RNG is set, and 2 when some + * entropy has been pushed in. The value 2 marks the RNG + * as "properly seeded". + * + * rng_os_rand_done is initially 0. It is set to 1 when + * some seeding from the OS or hardware has been attempted. */ br_hmac_drbg_context rng; int rng_init_done;