Class Randomizer

java.lang.Object
org.metricshub.ipmi.core.common.Randomizer

public final class Randomizer extends Object
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 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 length random bytes