Library for leveraging secure random generators