https://github.com/osquery/osquery logo
Title
s

seph

11/30/2017, 6:00 PM
docker run --rm --entrypoint sh kolide/openssl -c "cat /dev/random | base64 | head -c $1"
is an interesting way to get that.
z

zwass

11/30/2017, 6:03 PM
Ha yeah shooting for maximum compatibility and we already have the
kolide/openssl
container.
s

seph

11/30/2017, 6:12 PM
Given the use here, bash's $RANDOM seems quick and easy. 😛
Or more seriously, it you need at least one default value. I feel like there's somewhere else to cram it.