2018-07-21 12:37:39 +00:00
|
|
|
import * as plugins from './smartstring.plugins';
|
2017-10-11 12:52:22 +00:00
|
|
|
|
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 => {
|
2018-07-21 12:37:39 +00:00
|
|
|
return plugins.randomatic(patternArg, lengthArg, optionsArg);
|
|
|
|
};
|
2017-10-11 12:52:22 +00:00
|
|
|
|
2017-10-26 13:24:10 +00:00
|
|
|
export const createCryptoRandomString = (lengthArg): string => {
|
2018-07-21 12:37:39 +00:00
|
|
|
return plugins.cryptoRandomString(lengthArg);
|
|
|
|
};
|