Andreas Maier, 2000. All rights reserved. For a 'theory of operation' look at Theodore Ts'o code. This document is available online at the Sun Developer Connection.
Cryptographic software needs good random numbers.
The sources for randomness are poor. The caller must do this if appropriate. This function is tuned for speed above most other considerations. The standard defines the functions below. Now it compiles on Solaris 2.5.1 too.