Package org.metricshub.ipmi.core.common
Class Randomizer
java.lang.Object
org.metricshub.ipmi.core.common.Randomizer
Utility class for generating the random numbers of the RMCP+ session setup (the console random number of RAKP
Message 1, the first console session ID), with a
SecureRandom: a predictable console random number
weakens the session keys.-
Method Summary
-
Method Details
-
getInt
public static int getInt()- Returns:
- Generated random
Integer
-
getBytes
public static byte[] getBytes(int length) Generates random bytes.- Parameters:
length- the number of bytes- Returns:
- a new array of
lengthrandom bytes
-