--- openssl-fips-2.0.7/crypto/dsa/dsa_ossl.c.orig	2014-09-16 12:54:34.340986685 -0400
+++ openssl-fips-2.0.7/crypto/dsa/dsa_ossl.c	2014-09-16 12:55:11.571997379 -0400
@@ -156,13 +156,16 @@
 		DSAerr(DSA_F_DSA_DO_SIGN, DSA_R_KEY_SIZE_TOO_SMALL);
 		return NULL;
 		}
-	if (!fips_check_dsa_prng(dsa, 0, 0))
-		goto err;
 #endif
 
 	BN_init(&m);
 	BN_init(&xr);
 
+#ifdef OPENSSL_FIPS
+	if (!fips_check_dsa_prng(dsa, 0, 0))
+		goto err;
+#endif
+
 	if (!dsa->p || !dsa->q || !dsa->g)
 		{
 		reason=DSA_R_MISSING_PARAMETERS;
