- // Copy seed over half of randrsl, to reuse half of last-generated
- // data as seed.
- memcpy(ctx->randrsl, seed, sizeof(ctx->randrsl)/2);
+ // XOR the new seed over the current state, so to depend on
+ // the previously-generated output.
+ xor_block(ctx->randrsl, ctx->randrsl, seed, sizeof(ctx->randrsl));