aboutsummaryrefslogtreecommitdiff
path: root/tests/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtests/lib.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib.sh b/tests/lib.sh
index efc9368..f7f4415 100755
--- a/tests/lib.sh
+++ b/tests/lib.sh
@@ -27,3 +27,11 @@ assert_stdout() {
exit 1
fi
}
+
+uuid() {
+ # Taken from:
+ # https://serverfault.com/a/799198
+ od -x /dev/urandom | \
+ head -1 | \
+ awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}'
+}