Wgetting bytes from random.org
Wgetting bytes from random.org
Posted May 22, 2008 23:22 UTC (Thu) by pr1268 (guest, #24648)In reply to: Appropriate sources of entropy by cpeterso
Parent article: Appropriate sources of entropy
I'll happily share my technique for grabbing some random bytes from Random.org (run as root, obviously):
#!/bin/sh # 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 - \ "http://www.random.org/integers/?num=4&min=0&max=255&col=4&base=16&format=plain&md=new" \ | sed -e 's/\t//g' \ | xxd -r -p \ > /dev/random
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.
