-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hash unstable across executions #266
Comments
That flag is intended to be used for testing purposes only. There is code which relies on fact that I probably should add a big warning mentioning that use case. But we might introduce some compilation time seed randomization, if I figure out how to do that cleanly. |
Ok, thank you. Hakyll is using a hash to determine which parts of your website need to be rebuilt, and that doesn't seem unreasonable to me. But, our distro package enables the random seed. So I wanted to be sure before I went hacking on the distro package. |
Set the 'random-initial-seed' to always-on, which shouldn't cause any performance impact and will hopefully expose some bugs in the future. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: hololeap <[email protected]>
Which distro does so? That's wrong and you have my blessing to yell on the packagers for your distribution. In particular, If they don't listen, I have no other way forward then to remove the flag. |
Gentoo, but I think the change was well-intentioned. I have commit access so there shouldn't be much of a struggle :) |
If you want to add a big warning to the docs I think it might help, but I've updated the Gentoo package so for me the issue is resolved. Thanks for your help. |
I was the one who turned it on in Gentoo, and it was only to catch packages that relied on the hash being stable, just so we might prevent strange bugs from appearing in the future. @orlitzky turned it off again and I have no problem with that. I didn't know about hakyll and others relying on the hashes not changing between runs. |
Hello, I see that the docs already say that the hash is not necessarily stable across library versions, architectures, etc. And that there's a build flag to randomize the seed every time an executable is run. Can we infer that hashes should not be treated as stable between two (chronologically proximal) runs of the same program?
The text was updated successfully, but these errors were encountered: