Improved error checking for DRBG calls.