Make 1 the minimum registration ID

This commit is contained in:
Evan Hahn 2022-10-05 16:35:56 +00:00 committed by GitHub
parent e20ec013f5
commit 5219cdf2c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 26 deletions

View file

@ -119,6 +119,10 @@ export class Crypto {
return Buffer.concat([decipher.update(input), decipher.final()]);
}
public randomInt(min: number, max: number): number {
return crypto.randomInt(min, max);
}
public getRandomBytes(size: number): Uint8Array {
return crypto.randomBytes(size);
}