1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/random/sha1prng: remove redundant sha1 update in state transistion

This commit is contained in:
PeterKietzmann 2020-05-11 10:37:24 +02:00
parent 3f626e39ab
commit 54d6b0d096

View File

@ -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 */