Skip to content

editorGlobalsPseudoRandomString

Class: PseudoRandomString

Hierarchy

  • PseudoRandomString

Index

Properties

Methods

Properties

Static Private charset

charset: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"

Defined in src/util/PseudoRandomString.ts:2

Methods

Static generate

generate(length: number): string

Defined in src/util/PseudoRandomString.ts:10

A fast, low-quality random string. Compared to "randomstring.generate" that uses cryptographically strong random numbers as base, this is faster by orders of magnitude.

Parameters:

Name Type Description
length number -

Returns: string