oops. don't use "entropy" directly.
authorUlf Möller <ulf@openssl.org>
Sun, 19 Mar 2000 17:20:26 +0000 (17:20 +0000)
committerUlf Möller <ulf@openssl.org>
Sun, 19 Mar 2000 17:20:26 +0000 (17:20 +0000)
crypto/rand/md_rand.c

index 9f8da22917056fee1071edd08f38ab962a0d580f..35bdbeb73ee3382be30a8b38321c808f7266ef01 100644 (file)
@@ -1,4 +1,4 @@
-/* crypto/rand/md_rand.c */
+* crypto/rand/md_rand.c */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -593,8 +593,8 @@ int RAND_event(UINT iMsg, WPARAM wParam, LPARAM lParam)
                         dx=lastx-x;
                         dy=lasty-y;
                         if (dx != 0 && dy != 0 && dx-lastdx != 0 && dy-lastdy != 0)
-                                entropy += .2;
-                        lastx=x,lasty=y;
+                                add_entropy=.2;
+                        lastx=x, lasty=y;
                         lastdx=dx, lastdy=dy;
                         }
                break;