Make the predictable numbers start from 1
[oweals/openssl.git] / crypto / rand / md_rand.c
index 0cf6e90834820f129ec29b7f6806e17df09b5c53..88820bbb917674e18644d308d862c6ec30d612e2 100644 (file)
@@ -307,7 +307,7 @@ static int rand_bytes(unsigned char *buf, int num, int pseudo)
 
 #ifdef PREDICT
     if (rand_predictable) {
-        unsigned char val = 0;
+        unsigned char val = 1;
 
         for (i = 0; i < num; i++)
             buf[i] = val++;