Module generate
Crypto Functions
Generate Functions
Crypto Functions
generateNumber
- generateNumber(minimum: number, maximum: number): Promise<number>
-
Parameters
-
minimum: number
-
maximum: number
Returns Promise<number>
Secure random integer.
generateUuid4
-
Returns string
- Random RFC 4122 version 4 UUID.
generateUuid5
- generateUuid5(name: any, namespace?: string): string
-
Parameters
-
name: any
-
namespace: string = ...
Returns string
Generate Functions
generateTimeStamp
- generateTimeStamp(start?: number, end?: number): string
-
Parameters
-
start: number = 0
-
end: number = 31
Returns string
generateNumber
Secure random number generator. Integers only.
0.2.0