summaryrefslogtreecommitdiff
path: root/package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c')
-rw-r--r--package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c b/package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c
new file mode 100644
index 000000000..e7686248f
--- /dev/null
+++ b/package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c
@@ -0,0 +1,11 @@
+--- krb5-1.9.orig/src/lib/crypto/krb/prng/prng.c 2010-10-05 05:18:22.000000000 +0200
++++ krb5-1.9/src/lib/crypto/krb/prng/prng.c 2011-01-30 22:37:36.000000000 +0100
+@@ -168,7 +168,7 @@ krb5_c_random_os_entropy(krb5_context co
+ we have both /dev/random and /dev/urandom. We want the strong
+ data included in the reseed so we get it first.*/
+ if (strong) {
+- if (read_entropy_from_device(context, "/dev/random"))
++ if (read_entropy_from_device(context, "/dev/urandom"))
+ *oursuccess = 1;
+ }
+ if (read_entropy_from_device(context, "/dev/urandom"))