dw.crypto.SecureRandomTypical callers of SecureRandom invoke the following methods to retrieve random bytes:
Bytes bytes...
SecureRandom random = new SecureRandom();
Bytes nextBytes = random.nextBytes(bytes);
or more convenient to get a Bytes with the demanded length
int length = 32;
SecureRandom random = new SecureRandom();
Bytes nextBytes = random.nextBytes(length);
dw.crypto.SecureRandom is intentionally an adapter for generating cryptographic hard random numbers. If a call to setSeed had not occurred previously,
the first call to this method forces this SecureRandom object
to seed itself. This self-seeding will not occur if
setSeed was previously called.