The AOCL-SecureRNG Library exposes APIs to access hardware generated random numbers using x86 instructions RDRAND and RDSEED.