public class JavaRandom extends Object implements RandomProvider
SecureRandom to implement RandomProvider,
so it can be used on windows and linux.| Constructor and Description |
|---|
JavaRandom() |
public void init()
RandomProviderinit in interface RandomProviderpublic void setSeed(byte[] seed)
RandomProvidersetSeed in interface RandomProviderseed - The seedpublic void nextBytes(byte[] bytes)
RandomProvidernextBytes in interface RandomProviderbytes - The bytespublic void destroy()
RandomProviderdestroy in interface RandomProviderCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.