Home Manual Reference Source

Function

Static Public Summary
public

uuid(entropy: number, dictionary: *): string

Get random id

Static Public

public uuid(entropy: number, dictionary: *): string source

import {uuid} from 'zetapush-js/src/utils/index.js'

Get random id

Params:

NameTypeAttributeDescription
entropy number
  • optional
  • default: 7
dictionary *
  • optional
  • default: DICTIONARY

Return:

string