core: temporarily turn off random delays in storage and usb stack

release/2019-06 core/v2.1.1
Pavol Rusnak 5 years ago
parent bf79384845
commit 7af1d58594
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save