rand_unix.c: open random devices on first use only
[oweals/openssl.git] / crypto / rand / rand_lcl.h
index 376efed83c3db647d1dc84a17d7e871e8e0f04c7..c3e9804dc07e5b078379bbea30216a368f2fc9e0 100644 (file)
@@ -183,7 +183,7 @@ struct rand_drbg_st {
      * with respect to how randomness is added to the RNG during reseeding
      * (see PR #4328).
      */
-    struct rand_pool_st *pool;
+    struct rand_pool_st *seed_pool;
 
     /*
      * Auxiliary pool for additional data.
@@ -280,7 +280,7 @@ extern int rand_fork_count;
 /* DRBG helpers */
 int rand_drbg_restart(RAND_DRBG *drbg,
                       const unsigned char *buffer, size_t len, size_t entropy);
-
+size_t rand_drbg_seedlen(RAND_DRBG *drbg);
 /* locking api */
 int rand_drbg_lock(RAND_DRBG *drbg);
 int rand_drbg_unlock(RAND_DRBG *drbg);