Function getRandomBytes

  • Get random bytes. Use the JS seed number for deterministic randomisation. The seed number will be encoded into a 8 byte buffer. Set pool to false to acquire an unpooled buffer. This means the underlying ArrayBuffer is safely transferrable.

    Parameters

    • size: number
    • Optional seedNumber: number
    • pool: boolean = true

    Returns Buffer

Generated using TypeDoc