[nRF52840] Fixed length in trng in every mode

pull/4495/head
kl-cruz 2017-03-28 15:52:13 +02:00 committed by Russ Butler
parent c32e2c262a
commit 8698756c63
1 changed files with 3 additions and 3 deletions

View File

@ -60,12 +60,12 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
return -1;
}
else
{
*output_length = length;
}
#else
nrf_drv_rng_block_rand(output, length);
#endif
{
*output_length = length;
}
return 0;
}