1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

It's time for all of rng seed code to go. Goodbye

This commit is contained in:
Dario Pavlovic
2019-09-12 13:10:34 -07:00
parent 92c58c4d5d
commit cd8588077e
3 changed files with 0 additions and 43 deletions

View File

@ -740,10 +740,8 @@ def gen(args):
for name in os.listdir(samples):
samplename = abs_join(samples, name)
outname = abs_join(seed, name)
rng_seed = os.urandom(args.fuzz_rng_seed_size)
with open(samplename, 'rb') as sample:
with open(outname, 'wb') as out:
out.write(rng_seed)
CHUNK_SIZE = 131072
chunk = sample.read(CHUNK_SIZE)
while len(chunk) > 0: