()
| 626 | } |
| 627 | |
| 628 | pub fn process_hash_secret_seed() -> u32 { |
| 629 | use std::sync::OnceLock; |
| 630 | static SEED: OnceLock<u32> = OnceLock::new(); |
| 631 | // os_random is expensive, but this is only ever called once |
| 632 | *SEED.get_or_init(|| u32::from_ne_bytes(rustpython_common::rand::os_random())) |
| 633 | } |
| 634 | |
| 635 | impl VirtualMachine { |
| 636 | fn init_callable_cache(&mut self) -> PyResult<()> { |
no test coverage detected