byte[] b = ... random bytes from /dev/urandom ...
PK11SecureRandom sr = new PK11SecureRandom();
sr.setSeed(b);
This code is only used in KRA. Further investigation is needed to determine the purpose of this code. If it turns out to be unnecessary the code should be removed.
This issue was migrated from Pagure Issue #2698. Originally filed by edewata (@edewata) on 2017-05-19 14:17:05:
The following code in JssSubsystem seeds a PK11SecureRandom object with random bytes obtained from /dev/urandom (see https://github.com/dogtagpki/pki/blob/master/base/server/cmscore/src/com/netscape/cmscore/security/JssSubsystem.java#L258):
This code is only used in KRA. Further investigation is needed to determine the purpose of this code. If it turns out to be unnecessary the code should be removed.