mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 18:54:31 +01:00
The test called Entropy::seeded directly, so it still passed if export stopped reading the OS random source. Entropy::new now reads the OS bytes and the time through seed_sources(), which a test can set for its thread, and the test runs protect with fixed OS bytes, other OS bytes and a failed OS read. The OS read in vectorcraft-js's os_random() is now one function for tests and builds alike.