@arcmantle/library
    Preparing search index...

    Function random

    • Generate an array of random bytes collected from hardware noise.

      import { customRandom, random } from 'nanoid'
      const nanoid = customRandom("abcdef", 5, random)

      Parameters

      • bytes: number

        Size of the array.

      Returns Uint8Array

      An array of random bytes.