Summary
Use of Math.random() in IDs, hashes, and security-sensitive contexts (covered in #1) has been found in many call sites; consolidate as a security hardening epic.
Affected area
Search for Math.random in src/** and tests/e2e/**.
Steps to reproduce / impact
See issue #1. Aggregating all sites into one issue makes the impact visible.
Expected behaviour
Replace every Math.random (especially substr-based id generation) with crypto.randomUUID or crypto.getRandomValues.
Acceptance criteria
Summary
Use of
Math.random()in IDs, hashes, and security-sensitive contexts (covered in #1) has been found in many call sites; consolidate as a security hardening epic.Affected area
Search for
Math.randominsrc/**andtests/e2e/**.Steps to reproduce / impact
See issue #1. Aggregating all sites into one issue makes the impact visible.
Expected behaviour
Replace every
Math.random(especially substr-based id generation) withcrypto.randomUUIDorcrypto.getRandomValues.Acceptance criteria
Math.randomis replaced.Math.randomis added in security-sensitive paths.