aboutsummaryrefslogtreecommitdiff
path: root/aux
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-17 23:55:34 -0300
committerEuAndreh <eu@euandre.org>2021-02-17 23:58:50 -0300
commit33579d6a22107834f8007a20559f05e55f5ec669 (patch)
treea22b4cf5c672f52f6af917ecc5044467bfd8bee7 /aux
parentREADME.md: Use main branch over tag in example (diff)
downloadremembering-33579d6a22107834f8007a20559f05e55f5ec669.tar.gz
remembering-33579d6a22107834f8007a20559f05e55f5ec669.tar.xz
Refactor tests/lib.sh
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}'
+}