diff options
Diffstat (limited to 'crypto/rand/rand_pool.c')
-rw-r--r-- | crypto/rand/rand_pool.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/rand/rand_pool.c b/crypto/rand/rand_pool.c index 8dc230b540..8d77b77fd2 100644 --- a/crypto/rand/rand_pool.c +++ b/crypto/rand/rand_pool.c @@ -249,7 +249,11 @@ size_t ossl_rand_pool_bytes_needed(RAND_POOL *pool, unsigned int entropy_factor) if (bytes_needed > pool->max_len - pool->len) { /* not enough space left */ - ERR_raise(ERR_LIB_RAND, RAND_R_RANDOM_POOL_OVERFLOW); + ERR_raise_data(ERR_LIB_RAND, RAND_R_RANDOM_POOL_OVERFLOW, + "entropy_factor=%u, entropy_needed=%zu, bytes_needed=%zu," + "pool->max_len=%zu, pool->len=%zu", + entropy_factor, entropy_needed, bytes_needed, + pool->max_len, pool->len); return 0; } |