Renames null entropy source function for clarity
diff --git a/include/mbedtls/entropy_poll.h b/include/mbedtls/entropy_poll.h
index d7aa88c..430e865 100644
--- a/include/mbedtls/entropy_poll.h
+++ b/include/mbedtls/entropy_poll.h
@@ -47,7 +47,7 @@
* \brief Entropy poll callback that provides 0 entropy.
*/
#if defined(MBEDTLS_TEST_NULL_ENTROPY)
- int mbedtls_zero_entropy_poll( void *data,
+ int mbedtls_null_entropy_poll( void *data,
unsigned char *output, size_t len, size_t *olen );
#endif
diff --git a/library/entropy.c b/library/entropy.c
index 49710de..282640f 100644
--- a/library/entropy.c
+++ b/library/entropy.c
@@ -80,7 +80,7 @@
#endif
#if defined(MBEDTLS_TEST_NULL_ENTROPY)
- mbedtls_entropy_add_source( ctx, mbedtls_zero_entropy_poll, NULL,
+ mbedtls_entropy_add_source( ctx, mbedtls_null_entropy_poll, NULL,
1, MBEDTLS_ENTROPY_SOURCE_STRONG );
#endif
diff --git a/library/entropy_poll.c b/library/entropy_poll.c
index ed80bab..a116e60 100644
--- a/library/entropy_poll.c
+++ b/library/entropy_poll.c
@@ -192,7 +192,7 @@
#endif /* !MBEDTLS_NO_PLATFORM_ENTROPY */
#if defined(MBEDTLS_TEST_NULL_ENTROPY)
-int mbedtls_zero_entropy_poll( void *data,
+int mbedtls_null_entropy_poll( void *data,
unsigned char *output, size_t len, size_t *olen )
{
((void) data);