blob: fa8f7543f555536eb5d42845c1f91498b00fc23e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- lib/ttyui/pgpUserIO.c.orig Wed May 24 08:27:17 2000
+++ lib/ttyui/pgpUserIO.c Wed May 24 08:28:52 2000
@@ -1321,7 +1321,7 @@ pgpDevRandomAccum(int fd, unsigned count
pgpAssert(fd >= 0);
for(i = 0; i <= count; ++i) {
- RandBuf = read(fd, &RandBuf, count);
+ read(fd, &RandBuf, 1);
pgpRandomAddBytes(&pgpRandomPool, (byte *)&RandBuf, sizeof(RandBuf));
pgpRandPoolAddEntropy(256);
}
|