FASTMODEL: update trng based on comments

pull/11589/head
Qinghao Shi 2019-09-30 16:30:51 +01:00
parent a3f82738dd
commit 5089d9de87
1 changed files with 0 additions and 2 deletions

View File

@ -44,7 +44,6 @@ void trng_free(trng_t *obj)
int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_length)
{
(void)obj;
(void)output;
for (int i = 0; i < length; ++i) {
output[i] = rand() % 256;
@ -52,5 +51,4 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
*output_length = length;
return 0;
}