The Leopard-15/L15 CSPRNG (Cryptographically Secure Pseudo Random
Number Generator) was developed to rectify the shortcomings of the
ARC4 algorithm.
The algorithm is simple and fast;
Source code:
L15.h (C++ header)
Overview
And if it is not perfect, it is close to perfect.
robin.carey1_at_googlemail_dot_com