aboutsummaryrefslogtreecommitdiff
path: root/aux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xaux/utils.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/aux/utils.sh b/aux/utils.sh
new file mode 100755
index 0000000..8d93fb5
--- /dev/null
+++ b/aux/utils.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+uuid() {
+ # Taken from:
+ # https://serverfault.com/a/799198
+ od -xN20 /dev/urandom | \
+ head -1 | \
+ awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}'
+}