updated non-rdrand functions to work with new interface