pre-test version of the mbedtls_ssl_conf_rng removal

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 8f90fa1..20a2538 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -1223,11 +1223,6 @@
         return ret;
     }
 
-    if (ssl->conf->f_rng == NULL) {
-        MBEDTLS_SSL_DEBUG_MSG(1, ("no RNG provided"));
-        return MBEDTLS_ERR_SSL_NO_RNG;
-    }
-
     /* Space for further checks */
 
     return 0;
@@ -1249,6 +1244,7 @@
     if ((ret = ssl_conf_check(ssl)) != 0) {
         return ret;
     }
+
     ssl->tls_version = ssl->conf->max_tls_version;
 
     /*
@@ -1289,6 +1285,10 @@
         goto error;
     }
 
+    if((ret = psa_crypto_init()) != 0) {
+        goto error;
+    }
+
     return 0;
 
 error: