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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/host/trng.c b/chip/host/trng.c
index ccb7a68983..80b52ce452 100644
--- a/chip/host/trng.c
+++ b/chip/host/trng.c
@@ -40,6 +40,12 @@ test_mockable void rand_bytes(void *buffer, size_t len)
*b = (uint8_t)rand_r(&seed);
}
+test_mockable bool fips_trng_bytes(void *buffer, size_t len)
+{
+ rand_bytes(buffer, len);
+ return true;
+}
+
test_mockable bool fips_rand_bytes(void *buffer, size_t len)
{
rand_bytes(buffer, len);