From 7af1d5859458e87efd6957885566aed890a9f781 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 4 Jun 2019 12:24:38 +0200 Subject: [PATCH] core: temporarily turn off random delays in storage and usb stack --- core/embed/trezorhal/common.c | 2 +- storage/storage.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/embed/trezorhal/common.c b/core/embed/trezorhal/common.c index 0fba1d0f5..a729417dd 100644 --- a/core/embed/trezorhal/common.c +++ b/core/embed/trezorhal/common.c @@ -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) { diff --git a/storage/storage.c b/storage/storage.c index fa6e90ca3..944f9ddbf 100644 --- a/storage/storage.c +++ b/storage/storage.c @@ -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) {