summaryrefslogtreecommitdiff
path: root/resources/js/helpers.js
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-18 16:07:39 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-18 16:07:39 +0200
commitd3e65b98ca932aef1e05e33d74eaf62be520cdd4 (patch)
tree3645410b3c4c857d1a602f6b6abda71b106aae64 /resources/js/helpers.js
parentaa44f67ab57673528e96a4a075fbd8cd0354bd68 (diff)
inventory and items
Diffstat (limited to 'resources/js/helpers.js')
-rw-r--r--resources/js/helpers.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/js/helpers.js b/resources/js/helpers.js
index 019f822..1622eb2 100644
--- a/resources/js/helpers.js
+++ b/resources/js/helpers.js
@@ -43,3 +43,10 @@ function mixColors(...colors) {
return `rgb(${r}, ${g}, ${b})`;
}
+
+/**
+ * @returns {string}
+ */
+function randomString () {
+ return (Math.random() + 1).toString(36).substring(2);
+}