commit b93cd6923c0e3f66ac20dd83907ebc36eced6cb4
parent 7b8ae13059b65a41c03afc48cea6ff4624832757
Author: Chris Bracken <chris@bracken.jp>
Date: Wed, 20 Sep 2023 18:58:11 -0700
Use a consistent random seed for reproducibility
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/decay.py b/decay.py
@@ -29,6 +29,10 @@ def main():
sys.stderr.write("usage: decay.py FILE...")
sys.exit(1)
+ # For reproducibility, set random seet to the release date of Linda, Linda by
+ # the Blue Hearts.
+ random.seed(19870501)
+
# Erode and rewrite each file.
maintain_fraction = 0.98
for filename in sys.argv[1:]: