use Mutex;
/// Shared lock serializing every test that touches global RNG state
/// (`manual_seed`, `Tensor::rand`). All `rand` test modules grab this before
/// calling into the rand module. Separate per-file statics would not serialize
/// across files, causing parallel races on `GLOBAL_SEED` / `SEED_EPOCH`.
pub static RAND_TEST_LOCK: = new;