random
A lazily-initialized instance of SecureRandom
providing a secure source of randomness.
This variable attempts to obtain a strong SecureRandom
instance using SecureRandom.getInstanceStrong()
. If this operation fails (e.g., due to system or environment limitations), it logs the error and falls back to a default SecureRandom
instance.
This ensures that a SecureRandom
instance is always available, prioritizing strong cryptographic security when possible, while maintaining resilience to initialization failures.