summaryrefslogtreecommitdiff
path: root/chip/host/trng.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/host/trng.c')
-rw-r--r--chip/host/trng.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/chip/host/trng.c b/chip/host/trng.c
index d0def66277..f67dd6c4db 100644
--- a/chip/host/trng.c
+++ b/chip/host/trng.c
@@ -31,6 +31,11 @@ test_mockable void trng_exit(void)
{
}
+test_mockable uint32_t trng_rand(void)
+{
+ return (uint32_t)rand_r(&seed);
+}
+
test_mockable void trng_rand_bytes(void *buffer, size_t len)
{
uint8_t *b, *end;