random hex

This commit is contained in:
hophacker 2021-01-08 09:44:16 +08:00
parent 22a501f437
commit 1d4058bed1

View File

@ -317,3 +317,7 @@ function gc {
function gcm {
(gc --message $*) || return
}
function random_hex {
openssl rand -hex $(expr $1 / 2)
}