mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-15 02:58:12 +00:00
core: temporarily turn off random delays in storage and usb stack
This commit is contained in:
parent
bf79384845
commit
7af1d58594
@ -121,7 +121,7 @@ void __assert_func(const char *file, int line, const char *func,
|
||||
void hal_delay(uint32_t ms) { HAL_Delay(ms); }
|
||||
|
||||
void delay_random(void) {
|
||||
int wait = rng_get() & 0xff;
|
||||
int wait = 0; // rng_get() & 0xff;
|
||||
volatile int i = 0;
|
||||
volatile int j = wait;
|
||||
while (i < wait) {
|
||||
|
@ -336,7 +336,7 @@ static secbool auth_get(uint16_t key, const void **val, uint16_t *len) {
|
||||
*/
|
||||
static void wait_random(void) {
|
||||
#ifndef TREZOR_STORAGE_TEST
|
||||
int wait = random32() & 0xff;
|
||||
int wait = 0; // random32() & 0xff;
|
||||
volatile int i = 0;
|
||||
volatile int j = wait;
|
||||
while (i < wait) {
|
||||
|
Loading…
Reference in New Issue
Block a user