random hex
This commit is contained in:
parent
22a501f437
commit
1d4058bed1
@ -317,3 +317,7 @@ function gc {
|
|||||||
function gcm {
|
function gcm {
|
||||||
(gc --message $*) || return
|
(gc --message $*) || return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function random_hex {
|
||||||
|
openssl rand -hex $(expr $1 / 2)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user