Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Similar to `lib.fakeHash` but value is different each time. This is useful to avoid locking when rebuilding multiple packages and/or for multiple architectures. With `lib.fakeHash` multiple `FOD` builds on same machine would assume that output with `fakeHash` can be produced so only one `FOD` build at a time would be allowed to save efforts `_if_` all those builds would produce same output with `fakeHash`. But actual reason to use `fakeHash` is letting the build fail and produce hash mismatch error with real hash value, so it makes more sense to let all fake hash FODs be different Randomness code is partially borrowed from https://github.com/figsoda/rand-nix/blob/main/default.nix Admittedly this is a little ugly, but if only used during local rebuilds might be good enough.
- Loading branch information