lxsh/shellcode/random.sh

3 lines
97 B
Bash

_lxsh_random() {
printf %d "0x$(head -c"${1-2}" </dev/urandom | od -A n -vt x1 | tr -d ' ')"
}