Import OpenBSD's rand.c from http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/lib/libc/stdlib/rand.c?rev=1.9;content-type=text%2Fplain