From 1a7402cb8df2ea7ed28b0eaad11173885be00794 Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 11 May 2025 16:31:58 +0200 Subject: [PATCH] addet random functions --- functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.sh b/functions.sh index 26455bf..6a7d8ba 100644 --- a/functions.sh +++ b/functions.sh @@ -1,3 +1,7 @@ get_ip() { ip a | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | cut -d/ -f1 | head -n 1 } + +random() { + openssl rand -hex "${1:-32}" +}