diff options
| author | Adam Soltys <[email protected]> | 2025-07-07 22:34:27 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-07-07 22:34:27 -0700 |
| commit | 209b1e64f1c4dda16a50e57c6570a3a35953085d (patch) | |
| tree | 4e8b260e5b8f832b03dd41f17f65b42aba58f268 /src/lib/random.ts | |
| parent | 1b1718a4b64275bac8e1fe519d33c67e3a95f2c5 (diff) | |
| download | coinos-ui-209b1e64f1c4dda16a50e57c6570a3a35953085d.tar.gz coinos-ui-209b1e64f1c4dda16a50e57c6570a3a35953085d.zip | |
fund sweep
Diffstat (limited to 'src/lib/random.ts')
| -rw-r--r-- | src/lib/random.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/lib/random.ts b/src/lib/random.ts new file mode 100644 index 00000000..36dde0cc --- /dev/null +++ b/src/lib/random.ts @@ -0,0 +1,20 @@ +import { + NumberDictionary, + animals, + colors, + uniqueNamesGenerator, +} from "unique-names-generator"; + +export const randomName = () => + uniqueNamesGenerator({ + dictionaries: [animals, NumberDictionary.generate({ min: 10, max: 99 })], + length: 2, + separator: "", + }); + +export const randomPassword = () => + uniqueNamesGenerator({ + dictionaries: [colors, NumberDictionary.generate({ min: 100, max: 999 })], + length: 2, + separator: "", + }); |
