Wgetting bytes from random.org
Posted May 22, 2008 23:22 UTC (Thu) by pr1268
In reply to: Appropriate sources of entropy
Parent article: Appropriate sources of entropy
I'll happily share my technique for grabbing some random bytes from Random.org (run as root, obviously):
# Grab 4 unsigned bytes from random.org's HTTP interface,
# parse out just the numbers (filtering the tab chars out),
# create a 4-byte (32-bit) hexdump, and finally,
# write output to /dev/random.
wget -o /dev/null -O - \
| sed -e 's/\t//g' \
| xxd -r -p \
Feel free to use or derive from the above; while I'm the author, I do not imply any copyright on it. Comments, suggestions, and criticism are most certainly welcome.
to post comments)