Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Added randomisation utils

Blaumausf09e3811c2b8
diff --git a/src/utils/random.js b/src/utils/random.js
new file mode 100644
index 000000000..757b6ed62
--- /dev/null
+++ b/src/utils/random.js
@@ -0,0 +1,5 @@
+import { customAlphabet } from 'nanoid'
+
+const legalCharacters = '1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm-'
+
+export const nanoid = customAlphabet(legalCharacters, 11)
\ No newline at end of file