Packages

object SecureRandom

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SecureRandom
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def execute[A](fn: (java.security.SecureRandom) => A): RIO[SecureRandom, A]

    Provides the underlying java.security.SecureRandom used internally to the function fn.

    Provides the underlying java.security.SecureRandom used internally to the function fn.

    returns

    the value returned by fn

  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. val live: Layer[NoSuchAlgorithmException, SecureRandom]
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def nextBytes(length: => Int): RIO[SecureRandom, Chunk[Byte]]

    Generates a pseudo-random Arrayuence of bytes of the specified length.

    Generates a pseudo-random Arrayuence of bytes of the specified length.

    length

    the requested length of the resulting Chunk[Byte].

    returns

    a Chunk[Byte] of length length

  16. def nextString(entropyBytes: => Int): RIO[SecureRandom, String]

    Generates a base64-encoded pseudo-random string with entropyBytes bytes of entropy.

    Generates a base64-encoded pseudo-random string with entropyBytes bytes of entropy. The resulting string will longer than entropyBytes (or empty when entropyBytes is 0), as the base64 encoding requires additional space.

    entropyBytes

    the number of bytes of entropy to include in the returned String.

    returns

    a String with at least entropyBytes of entropy.

  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def setSeed(seed: => Long): URIO[SecureRandom, Unit]

    Reseeds this random object, using the eight bytes contained in the given seed.

    Reseeds this random object, using the eight bytes contained in the given seed. The given seed supplements, rather than replaces, the existing seed. Thus, repeated calls are guaranteed never to reduce randomness.

    This method is defined for compatibility with java.util.Random.

    seed

    the seed.

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped