Removing RAND_bytes call
Checking for SQLITE_OK as return code for random