addet random functions
This commit is contained in:
parent
ecfee809a2
commit
1a7402cb8d
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
get_ip() {
|
get_ip() {
|
||||||
ip a | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | cut -d/ -f1 | head -n 1
|
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}"
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue