Replace libcrypto RAND_ with our own to avoid valgrind errors.