Remove cat-abuse

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-06-05 14:08:23 +02:00
parent cff04248e7
commit 70baeb5971
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -1,5 +1,5 @@
function gen_prefix() {
cat /dev/urandom | tr -dc 'a-z0-9' | head -c 8 || true
tr -dc 'a-z0-9' </dev/urandom | head -c 8 || true
}
# Generate an unique ID and set config path for it