Fix couple of bugs in CTR DRBG implementation.