Question: Pseudo-random number generation: Using your hash function, write a procedure [PRNG seed length], that uses a seed to output $length bytes, in hex: % PRNG
Pseudo-random number generation: Using your hash function, write a procedure [PRNG seed length], that uses a seed to output $length bytes, in hex:
% PRNG secretseed 30
3af854ec902e7706004df5027e5fdb099ab1e30c2a540c23b11d39afa07c
The seed should be used to generate the sequence, with a single seed generating the same output each time. Someone without knowledge of the seed should not be able to generate or predict the output, even given previous output to analyze.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
