Attached you can find a patch.

Sometimes xca seems to freeze for a few seconds while waiting for
/dev/random, but thats better than having a bad key. Maybe somebody
more gifted in gui programming than me could provide a popup saying
"move your mouse and press some keys".


Regards
Harri

Index: xca-1.3.2/lib/entropy.cpp
===================================================================
--- xca-1.3.2.orig/lib/entropy.cpp
+++ xca-1.3.2/lib/entropy.cpp
@@ -89,7 +89,7 @@ int Entropy::random_from_file(QString fn
 	ba = filename2bytearray(fname);
 	file = ba.constData();
 
-	fd = open(file, O_RDONLY | O_NONBLOCK);
+	fd = open(file, O_RDONLY);
 
 	if (fd == -1)
 		return 0;

Reply via email to