diff options
Diffstat (limited to '')
-rwxr-xr-x | tests/lib.sh | 8 |
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}' +} |