From 33579d6a22107834f8007a20559f05e55f5ec669 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 17 Feb 2021 23:55:34 -0300 Subject: Refactor tests/lib.sh --- aux/utils.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 aux/utils.sh (limited to 'aux') 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}' +} -- cgit v1.2.3