X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fsec%2Fprng%2Fisaac.c;h=4e031c0be5d9a36d234088b8a39cd460a8a721d1;hb=1056f52c9b1a21812c19224c4b473e04520364d8;hp=72d4a320734e0ac159553d696fbc07b6b542dc94;hpb=d1a9a6eb1d3014b7708b0f0ddf6e85b783d21639;p=bertos.git diff --git a/bertos/sec/prng/isaac.c b/bertos/sec/prng/isaac.c index 72d4a320..4e031c0b 100644 --- a/bertos/sec/prng/isaac.c +++ b/bertos/sec/prng/isaac.c @@ -173,6 +173,7 @@ void isaac_init(IsaacContext *ctx) ctx->prng.reseed = isaac_reseed; ctx->prng.generate = isaac_generate; ctx->prng.seed_len = sizeof(ctx->randrsl) / 2; + ctx->prng.seeded = 0; ctx->randcnt = CONFIG_ISAAC_RANDSIZ*4; memset(ctx->randrsl, 0, sizeof(ctx->randrsl));