From 642f32abb13a8e4df98b1b164393e7c0b34db32e Mon Sep 17 00:00:00 2001 From: satyakwok <119509589+satyakwok@users.noreply.github.com> Date: Sat, 23 May 2026 20:08:25 +0700 Subject: [PATCH] Potential fix for code scanning alert no. 263: Hard-coded cryptographic value Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- tests/integration_trie.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/integration_trie.rs b/tests/integration_trie.rs index 42b91b49..87673781 100644 --- a/tests/integration_trie.rs +++ b/tests/integration_trie.rs @@ -324,7 +324,11 @@ fn test_trie_persists_after_restart() { let dir = tempfile::TempDir::new().unwrap(); let key = address_to_key("0xcafecafecafecafecafecafecafecafecafecafe"); - let val = account_value_bytes(999_999, 42); + let nonce = std::time::SystemTime::now() + .duration_since(std::time::UNIX_EPOCH) + .unwrap() + .as_nanos() as u64; + let val = account_value_bytes(999_999, nonce); // Session 1: insert + commit {