()
| 31 | * to ensure safe random number generation in certain contexts (e.g., Next.js Cache Components). |
| 32 | */ |
| 33 | export function safeMathRandom(): number { |
| 34 | return withRandomSafeContext(() => Math.random()); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Identical to Date.now() but wrapped in withRandomSafeContext |
no test coverage detected