- use /dev/srandom in NativePRNG replacing /dev/random.

/dev/random use noticed by Sigfred Håversen.
This commit is contained in:
kurt 2006-06-20 02:02:48 +00:00
parent 532daeb3d6
commit 4b5dcd0f44
2 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2006/06/06 03:02:42 kurt Exp $
# $OpenBSD: Makefile,v 1.20 2006/06/20 02:02:48 kurt Exp $
ONLY_FOR_ARCHS= amd64 i386
@ -6,8 +6,8 @@ COMMENT= "Java2(TM) Standard Edition Dev Kit v${V}"
COMMENT-jre= "Java2(TM) Standard Edition Runtime Environment v${V}"
V= 1.5.0
DISTNAME= jdk-1_5_0
PKGNAME= jdk-${V}p15
PKGNAME-jre= jre-${V}p15
PKGNAME= jdk-${V}p16
PKGNAME-jre= jre-${V}p16
CATEGORIES= devel/jdk java

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-j2se_src_solaris_classes_sun_security_provider_NativePRNG_java,v 1.1 2006/06/20 02:02:48 kurt Exp $
--- j2se/src/solaris/classes/sun/security/provider/NativePRNG.java.orig Thu Apr 27 17:56:05 2006
+++ j2se/src/solaris/classes/sun/security/provider/NativePRNG.java Thu Apr 27 17:56:58 2006
@@ -46,7 +46,7 @@ public final class NativePRNG extends Se
private static final long serialVersionUID = -6599091113397072932L;
// name of the pure random file (also used for setSeed())
- private static final String NAME_RANDOM = "/dev/random";
+ private static final String NAME_RANDOM = "/dev/srandom";
// name of the pseudo random file
private static final String NAME_URANDOM = "/dev/urandom";