Fix Changelag PR number and uniformize code when prng fails

Signed-off-by: Jonas <jonas.lejeune4420@gmail.com>
diff --git a/library/ecp.c b/library/ecp.c
index 3c4a91a..9522edf 100644
--- a/library/ecp.c
+++ b/library/ecp.c
@@ -2862,7 +2862,10 @@
              * such as secp224k1 are actually very close to the worst case.
              */
             if( ++count > 30 )
-                return( MBEDTLS_ERR_ECP_RANDOM_FAILED );
+            {
+                ret = MBEDTLS_ERR_ECP_RANDOM_FAILED;
+                goto cleanup;
+            }
 
             ret = mbedtls_mpi_lt_mpi_ct( d, &grp->N, &cmp );
             if( ret != 0 )