libent is a simple cross-platform entropy gathering library. It tries to use the best available source of randomness, and is meant to be used in applications that need high-quality entropy, e.g. for generating cryptographic keys.