Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.

This is a modified version of 690c372.