X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=entropium%2Fentropium.c;fp=entropium%2Fentropium.c;h=0cc360397b17f7cfb1dec806663bd21b9949516d;hp=ed56607e2bb9af802f19c96095667897e6dbc242;hb=2bd3b1adfac19dfe2ef8eeb1d2f662d34c1a1844;hpb=b246a2a0589f234db6247255555df98f4c281c41 diff --git a/entropium/entropium.c b/entropium/entropium.c index ed56607..0cc3603 100644 --- a/entropium/entropium.c +++ b/entropium/entropium.c @@ -87,7 +87,7 @@ void entropium_addEntropy(unsigned length_b, const void* data){ void entropium_getRandomBlock(void *b){ sha256_ctx_t s; - uint8_t offset=8; + static uint8_t offset=8; sha256_init(&s); sha256_lastBlock(&s, rndCore, 512); /* remeber the byte order! */