mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-28 01:04:05 +00:00
typed parameters
This commit is contained in:
parent
075535ba46
commit
e127e168b6
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ export function getRandomInt(min: number, max: number) {
|
|||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
|
||||
export function getCryptoRandomInt(min, max) {
|
||||
export function getCryptoRandomInt(min; number, max: number) {
|
||||
const randomBuffer = new Uint32Array(1);
|
||||
crypto.getRandomValues(randomBuffer);
|
||||
let randomNumber = randomBuffer[0] / (0xffffffff + 1);
|
||||
|
|
Loading…
Reference in a new issue