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