From 54d6b0d09611e237800064bad56c1bd740c14def Mon Sep 17 00:00:00 2001 From: PeterKietzmann Date: Mon, 11 May 2020 10:37:24 +0200 Subject: [PATCH] sys/random/sha1prng: remove redundant sha1 update in state transistion --- sys/random/sha1prng.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/random/sha1prng.c b/sys/random/sha1prng.c index 03815056e7..282b1b3ce5 100644 --- a/sys/random/sha1prng.c +++ b/sys/random/sha1prng.c @@ -60,9 +60,6 @@ void _updatestate(int8_t *state) if (!zf) { state[0]++; } - - /* update SHA1 state */ - sha1_update(&ctx, (void *)state, sizeof(state)); } void _random_bytes(uint8_t *bytes, size_t size) /* TODO: use with global API */