1 /*
2  * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #include "trng.h"
9 #include <string.h>
10 
bl1_trng_generate_random(uint8_t * output,size_t output_size)11 int32_t bl1_trng_generate_random(uint8_t *output, size_t output_size)
12 {
13     if (output_size == 0) {
14         return 0;
15     }
16 
17     if (output == NULL) {
18         return -1;
19     }
20 
21     memset(output, 4, output_size);
22     return 0;
23 }
24 
fih_delay_random_uchar(void)25 unsigned char fih_delay_random_uchar(void)
26 {
27     return 4;
28 }
29