Basically, a rote copying from markus@ work on OpenBSD-HEAD, but removed
openbsd-specific locks and replaced sysctl(KERN_ARND) by _rs_random_buf()
loopback call.