Added random-gen
This commit is contained in:
7
random-gen
Executable file
7
random-gen
Executable 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
|
Reference in New Issue
Block a user