From 26e4f679ce7a29b9fad05c9a06bed16acc2c51b8 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Fri, 14 Jul 2023 14:29:52 -0600 Subject: [PATCH] feat: migrated random generator --- backend/generators.ts | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 backend/generators.ts diff --git a/backend/generators.ts b/backend/generators.ts new file mode 100644 index 0000000..ca16e8a --- /dev/null +++ b/backend/generators.ts @@ -0,0 +1,2 @@ +import cryptoRandomString from 'crypto-random-string'; +export const random = ({ length }: { length: number }) => cryptoRandomString({ length, type: 'alphanumeric' });