| java.lang.Object com.sun.portal.ksecurity.RandomData com.sun.portal.ksecurity.PRand
PRand | final class PRand extends RandomData (Code) | | Implements a pseudo random number generator.
|
Constructor Summary | |
public | PRand() Constructor for random data. |
Method Summary | |
public void | generateData(byte[] b, short off, short len) This does a reasonable job of producing unpredictable
random data by using a one way hash as a mixing function and
the current time in milliseconds as a source of entropy. | public void | setSeed(byte[] b, short off, short len) Set the random number seed. | public void | updateSeed() This does a reasonable job of producing unpredictable
random data by using a one way hash as a mixing function and
the current time in milliseconds as a source of entropy. |
generateData | public void generateData(byte[] b, short off, short len)(Code) | | This does a reasonable job of producing unpredictable
random data by using a one way hash as a mixing function and
the current time in milliseconds as a source of entropy.
Parameters: b - buffer of input data Parameters: off - offset into the provided buffer Parameters: len - length of the data to be processed |
setSeed | public void setSeed(byte[] b, short off, short len)(Code) | | Set the random number seed.
Parameters: b - initial data to use as the seed Parameters: off - offset into the provided buffer Parameters: len - length of the data to be used |
updateSeed | public void updateSeed()(Code) | | This does a reasonable job of producing unpredictable
random data by using a one way hash as a mixing function and
the current time in milliseconds as a source of entropy.
|
Fields inherited from com.sun.portal.ksecurity.RandomData | final public static byte ALG_PSEUDO_RANDOM(Code)(Java Doc) final public static byte ALG_SECURE_RANDOM(Code)(Java Doc)
|
|
|