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:
parent
3f626e39ab
commit
54d6b0d096
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user