Skip to content

store and load random seed#6

Open
xwang1498 wants to merge 2 commits into
bingmann:masterfrom
xwang1498:store-random-seed
Open

store and load random seed#6
xwang1498 wants to merge 2 commits into
bingmann:masterfrom
xwang1498:store-random-seed

Conversation

@xwang1498

Copy link
Copy Markdown

Currently, the random seed is only logged to stdout. It's easy to lose this, making it tough to verify already-written files later or after an interruption.

This change:

  • stores and deletes the random seed as random-seed alongside the random-######## files
  • falls back to this stored seed in verify/readonly mode if the user didn't manually specify a seed.

(One small downside: this change effectively disallows the 0 seed, for the sake of a simpler implementation. If that's not desired, I can fix it.)

Fixes #5 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have a way to recover seed if not noted at the start of the scan.

1 participant