Skip to content

Commit a6df4ca

Browse files
authored
Merge pull request #5550 from sarahmarshy/patch-13
Fix bug in K64F trng_api.c
2 parents 45e9e4c + cefcb8c commit a6df4ca

File tree

1 file changed

+1
-0
lines changed
  • targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F

1 file changed

+1
-0
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/trng_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void trng_free(trng_t *obj)
5050
*/
5151
static void trng_get_byte(unsigned char *byte)
5252
{
53+
*byte = 0;
5354
size_t bit;
5455

5556
/* 34.5 Steps 3-4-5: poll SR and read from OR when ready */

0 commit comments

Comments
 (0)