Package com.google.crypto.tink.subtle
Class Random
- java.lang.Object
-
- com.google.crypto.tink.subtle.Random
-
public final class Random extends java.lang.ObjectProvides secure randomness usingSecureRandom.- Since:
- 1.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]randBytes(int size)Returns a random byte array of sizesize.static intrandInt()Returns a random int.static intrandInt(int max)Returns a random int between 0 and max-1.
-