2017-10-11 14:52:22 +02:00
|
|
|
import * as plugins from './smartstring.plugins'
|
|
|
|
|
2017-10-26 15:24:10 +02:00
|
|
|
export const createRandomString = (
|
2017-10-11 14:52:22 +02:00
|
|
|
patternArg: string,
|
|
|
|
lengthArg: number,
|
|
|
|
optionsArg: any
|
|
|
|
): string => {
|
|
|
|
return plugins.randomatic(patternArg, lengthArg, optionsArg)
|
|
|
|
}
|
|
|
|
|
2017-10-26 15:24:10 +02:00
|
|
|
export const createCryptoRandomString = (lengthArg): string => {
|
2017-10-11 14:52:22 +02:00
|
|
|
return plugins.cryptoRandomString(lengthArg)
|
|
|
|
}
|