mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-13 10:08:08 +00:00
legacy/common: Temporarily use TRNG to generate random delays.
This commit is contained in:
parent
6e884203c3
commit
e6ee13e798
@ -86,7 +86,7 @@ void __assert_func(const char *file, int line, const char *func,
|
|||||||
void hal_delay(uint32_t ms) { usbSleep(ms); }
|
void hal_delay(uint32_t ms) { usbSleep(ms); }
|
||||||
|
|
||||||
void wait_random(void) {
|
void wait_random(void) {
|
||||||
int wait = drbg_random32() & 0xff;
|
int wait = random32() & 0xff;
|
||||||
volatile int i = 0;
|
volatile int i = 0;
|
||||||
volatile int j = wait;
|
volatile int j = wait;
|
||||||
while (i < wait) {
|
while (i < wait) {
|
||||||
|
Loading…
Reference in New Issue
Block a user