Simple Pseudorandom Generator (SHA-256)
Visualizes how each iteration hashes the seed, emits one byte, and carries the rest forward. Includes a counter-patched variant that keeps the seed at 256 bits.
Initial seed
(32 bytes hex / 64 hex chars)
Rounds (t)
Mode
Counter-patched (keep 32B seed)
Original (seed shrinks to 31B)
Run demo
Random 32-byte seed
Fill example seed
Copy output bytes
seed in
kept → next seed
emitted byte
counter byte