aboutsummaryrefslogtreecommitdiff
path: root/csprng.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-11-17 23:45:17 -0500
committerPaul Selkirk <paul@psgd.org>2015-11-17 23:45:17 -0500
commit03e6a672c964ebaf0e61018b0a7a63edb2748990 (patch)
treefc3ef67bd4a47ea33e95fc9a5e0c8bc03d7dbf3c /csprng.c
parent863f996135a80ff8511360308496056ecee9e47d (diff)
More post-merge cleanup.
- Joachim says always check entropy and csprng for 'valid' before reading. - Harmonize RNG status valid bit with other cores. - Clean up compiler warnings about printf formats.
Diffstat (limited to 'csprng.c')
-rw-r--r--csprng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/csprng.c b/csprng.c
index 9517d0d..24a4c05 100644
--- a/csprng.c
+++ b/csprng.c
@@ -38,7 +38,7 @@
#include "verilog_constants.h"
#ifndef WAIT_FOR_CSPRNG_VALID
-#define WAIT_FOR_CSPRNG_VALID 0
+#define WAIT_FOR_CSPRNG_VALID 1
#endif
hal_error_t hal_get_random(const hal_core_t *core, void *buffer, const size_t length)