1
0
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:
Pavol Rusnak 2019-06-04 12:24:38 +02:00
parent bf79384845
commit 7af1d58594
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 2 deletions

View File

@ -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 hal_delay(uint32_t ms) { HAL_Delay(ms); }
void delay_random(void) { void delay_random(void) {
int wait = rng_get() & 0xff; int wait = 0; // rng_get() & 0xff;
volatile int i = 0; volatile int i = 0;
volatile int j = wait; volatile int j = wait;
while (i < wait) { while (i < wait) {

View File

@ -336,7 +336,7 @@ static secbool auth_get(uint16_t key, const void **val, uint16_t *len) {
*/ */
static void wait_random(void) { static void wait_random(void) {
#ifndef TREZOR_STORAGE_TEST #ifndef TREZOR_STORAGE_TEST
int wait = random32() & 0xff; int wait = 0; // random32() & 0xff;
volatile int i = 0; volatile int i = 0;
volatile int j = wait; volatile int j = wait;
while (i < wait) { while (i < wait) {