1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-19 00:18:09 +00:00
quot/app/views/helpers/random.ts

6 lines
134 B
TypeScript
Raw Permalink Normal View History

2022-08-24 13:17:37 +09:00
function random(): number {
2022-08-29 10:39:16 +09:00
return 0x7f_ff_ff_ff & window.crypto.getRandomValues(new Uint32Array(1))[0]!;
2022-08-24 13:17:37 +09:00
}
export default random;