aboutsummaryrefslogtreecommitdiff
path: root/csprng.c
diff options
context:
space:
mode:
Diffstat (limited to 'csprng.c')
-rw-r--r--csprng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/csprng.c b/csprng.c
index f4f835d..becd3f7 100644
--- a/csprng.c
+++ b/csprng.c
@@ -53,7 +53,7 @@
#define WAIT_FOR_CSPRNG_VALID 1
#endif
-hal_error_t hal_random(void *buffer, const size_t length)
+hal_error_t hal_get_random(void *buffer, const size_t length)
{
uint8_t temp[4], *buf = buffer;
hal_error_t err;
@@ -77,7 +77,7 @@ hal_error_t hal_random(void *buffer, const size_t length)
if (*buf != 0)
return HAL_OK;
- return HAL_ERROR_CSPRNG_ZEROED;
+ return HAL_ERROR_CSPRNG_BROKEN;
}
/*