public class Util
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.security.SecureRandom |
random |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static int |
bytesToUnsignedInt(byte[] integerInBytes) |
static byte[] |
copyOf(byte[] in,
int size) |
static byte[] |
copyOfRange(byte[] in,
int from,
int to) |
(package private) static double |
log2(double num) |
static byte[] |
randomBytes(int numberOfBytes) |
static byte[] |
unsignedIntToBytes(int data) |
static double log2(double num)
public static int bytesToUnsignedInt(byte[] integerInBytes)
public static byte[] unsignedIntToBytes(int data)
public static byte[] randomBytes(int numberOfBytes)
public static byte[] copyOf(byte[] in, int size)
public static byte[] copyOfRange(byte[] in, int from, int to)
Copyright © 2023. All rights reserved.