소스 검색

use urandom in both cases, otherwise i get problems on a foxboard

Waldemar Brodkorb 15 년 전
부모
커밋
48402ec7bb
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      package/krb5/patches/patch-src_lib_crypto_krb_prng_prng_c

+ 11 - 0
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
++++ krb5-1.9/src/lib/crypto/krb/prng/prng.c
+@@ -168,7 +168,7 @@
+        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"))