X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=noekeon%2Fnoekeon_prng.c;h=3b2eca9c494d0a92661b2e7840aca167cc91af09;hp=a264707a3235bd72bc14b61514c9226292b46380;hb=85aee632b0799ce567b9df7a6d16f59ab1564b34;hpb=450dc954c85cb4fcb90f052222f9ab0c26194cb2 diff --git a/noekeon/noekeon_prng.c b/noekeon/noekeon_prng.c index a264707..3b2eca9 100644 --- a/noekeon/noekeon_prng.c +++ b/noekeon/noekeon_prng.c @@ -31,7 +31,7 @@ static uint8_t random_state[16]; static uint8_t random_key[16]; -static uint8_t i=0; +static volatile uint8_t i=0; uint8_t random8(void){ static uint8_t sr[16];