oops. don't use "entropy" directly.

This commit is contained in:
Ulf Möller 2000-03-19 17:20:26 +00:00
parent c97b11f4b3
commit f3f3cc0cca

View 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,7 +593,7 @@ 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;
add_entropy=.2;
lastx=x, lasty=y;
lastdx=dx, lastdy=dy;
}