Class SystemSeed

java.lang.Object
org.jpos.security.SystemSeed

public class SystemSeed extends Object
Provides deterministic byte sequences derived from a built-in seed table, used as a stable source of pseudo-random data when no live RNG is needed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor; no instance state to initialise.
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte[]
    getSeed(int l)
    Returns l bytes from the seed table, starting at offset 0.
    static byte[]
    getSeed(int offset, int l)
    Returns l bytes from the seed table, starting at the given offset.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SystemSeed

      public SystemSeed()
      Default constructor; no instance state to initialise.
  • Method Details

    • getSeed

      public static byte[] getSeed(int l)
      Returns l bytes from the seed table, starting at offset 0.
      Parameters:
      l - number of bytes to return
      Returns:
      the requested bytes
    • getSeed

      public static byte[] getSeed(int offset, int l)
      Returns l bytes from the seed table, starting at the given offset.
      Parameters:
      offset - starting offset (wrapped modulo the seed table length)
      l - number of bytes to return
      Returns:
      the requested bytes