mirror of
https://github.com/kou029w/quot.git
synced 2025-01-19 08:28:09 +00:00
5 lines
134 B
TypeScript
5 lines
134 B
TypeScript
function random(): number {
|
|
return 0x7f_ff_ff_ff & window.crypto.getRandomValues(new Uint32Array(1))[0]!;
|
|
}
|
|
|
|
export default random;
|