Grab the source for drand48(3). You may have to release your hardware under the GPL if you use it, though.