Index: lib/ttyui/pgpUserIO.c
--- lib/ttyui/pgpUserIO.c.orig
+++ lib/ttyui/pgpUserIO.c
@@ -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);
     }
