Class InsecureRandom

All Implemented Interfaces:
Serializable

public class InsecureRandom extends SecureRandom
A SecureRandom instance that returns deterministic values given an initial seed. SECURITY: Neither secure nor truly random, but useful for testing. Please don't use for protecting real assets....
See Also:
Serialized Form
  • Constructor Details

    • InsecureRandom

      public InsecureRandom(long seed)
      Create an InsecureRandom instance with a specified seed
      Parameters:
      seed - Seed value to use