Added random-gen

This commit is contained in:
Allen
2023-08-04 03:57:19 -05:00
parent 2c556ef774
commit a244c779f5

7
random-gen Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# Would produce x2 the length provided
# openssl rand -hex $1
LENGTH=$1
tr -cd '[:alnum:]' < /dev/urandom | fold -w "${LENGTH}" | head -n 1 | tr -d '\n' ; echo