SecureRandom.nextBytes

Steve Burnett (burnettS@RSA.COM)
Wed, 14 May 1997 08:21:16 -0700

Message-Id: <c=US%a=_%p=RSA_Data_Securit%l=LOBESTER-970514152116Z-7397@LOBESTER.rsa.com>
From: Steve Burnett <burnettS@RSA.COM>
To: "'JavaSoft crypto questions'" <java-security@web2.javasoft.com>
Subject: SecureRandom.nextBytes
Date: Wed, 14 May 1997 08:21:16 -0700

One of the methods in the SecureRandom class is

void nextBytes (byte bytes[]);

The description says, "Generates a user-specified number of random
bytes."

Does this mean that the number of bytes this method will generate is
the length of the byte array? Does this method generate bytes.length
psedo-random bytes, filling every byte in the array? My question is
really How does the user specify the number of random bytes?

--Steve Burnett
burnetts@rsa.com