Options
All
  • Public
  • Public/Protected
  • All
Menu

Module generate

Enumerations

Crypto Functions

Generate Functions

Crypto Functions

generateNumber

  • generateNumber(minimum: number, maximum: number): Promise<number>
  • name

    generateNumber

    description

    Secure random number generator. Integers only.

    since

    0.2.0

    Parameters

    • minimum: number

      Minimum integer to generate.

    • maximum: number

      Maximum integer to generate.

    Returns Promise<number>

    Secure random integer.

generateUuid4

  • generateUuid4(): string
  • name

    generateUuid4

    description

    Generates a random RFC 4122 version 4 UUID.

    summary

    import { generateUuid4 } from '@corefunc/v8/generate/uuid4';

    since

    0.2.0

    Returns string

    • Random RFC 4122 version 4 UUID.

generateUuid5

  • generateUuid5(name: any, namespace?: string): string
  • name

    generateUuid5

    description

    Generates a RFC 4122 version 5 UUID.

    summary

    import { generateUuid5 } from '@corefunc/v8/generate/uuid5';

    since

    0.2.3

    Parameters

    • name: any
    • namespace: string = ...

    Returns string

    • RFC 4122 version 5 UUID.

Generate Functions

generateTimeStamp

  • generateTimeStamp(start?: number, end?: number): string
  • name

    generateTimeStamp

    description

    Generates timestamp.

    summary

    import { generateTimeStamp } from '@corefunc/v8/generate/time-stamp';

    since

    0.2.6

    Parameters

    • start: number = 0
    • end: number = 31

    Returns string

Generated using TypeDoc