1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 16:00:57 +00:00

legacy/common: Temporarily use TRNG to generate random delays.

This commit is contained in:
Andrew Kozlik 2019-06-10 12:59:35 +02:00
parent 6e884203c3
commit e6ee13e798

View File

@ -86,7 +86,7 @@ void __assert_func(const char *file, int line, const char *func,
void hal_delay(uint32_t ms) { usbSleep(ms); }
void wait_random(void) {
int wait = drbg_random32() & 0xff;
int wait = random32() & 0xff;
volatile int i = 0;
volatile int j = wait;
while (i < wait) {