Skip to content

Commit 8698756

Browse files
kl-cruzc1728p9
authored andcommitted
[nRF52840] Fixed length in trng in every mode
1 parent c32e2c2 commit 8698756

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

targets/TARGET_NORDIC/TARGET_NRF5/trng_api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_l
6060
return -1;
6161
}
6262
else
63-
{
64-
*output_length = length;
65-
}
6663
#else
6764
nrf_drv_rng_block_rand(output, length);
6865
#endif
66+
{
67+
*output_length = length;
68+
}
6969
return 0;
7070
}
7171

0 commit comments

Comments
 (0)