Skip to content

Commit d7d841f

Browse files
committed
Stronger RNG
1 parent 5710178 commit d7d841f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/entropy_hardware_poll.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ static void rng_get( int32_t *p32ConversionData)
5353
PRNG_ENABLE_INT();
5454

5555
// PRNG_Open(PRNG_KEY_SIZE_64, 0, 0);
56-
PRNG_Open(PRNG_KEY_SIZE_256, 0, 0);
57-
56+
PRNG_Open(PRNG_KEY_SIZE_256, 1, us_ticker_read());
5857
PRNG_Start();
5958
while (!g_PRNG_done);
6059

0 commit comments

Comments
 (0)