From bd234c13c5fa9d93092aa8a369e1226029826c72 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Sun, 1 Jan 2023 15:35:08 -0800 Subject: [PATCH] Fix the RNG seed in tests --- tests/common/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 2376b9924..aab190fd9 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -72,6 +72,7 @@ impl TestEnvironment { let mut command_number = self.command_number.borrow_mut(); *command_number += 1; + cmd.env("JJ_RANDOMNESS_SEED", command_number.to_string()); let timestamp = chrono::DateTime::parse_from_rfc3339("2001-02-03T04:05:06+07:00").unwrap(); let timestamp = timestamp + chrono::Duration::seconds(*command_number); cmd.env("JJ_TIMESTAMP", timestamp.to_rfc3339());