trait SecureRandom[F[_]] extends Random[F]

SecureRandom is the ability to get cryptographically strong random information. It is an extension of the Random interface, but is used where weaker implementations must be precluded.

Self Type
SecureRandom[F]
Source
SecureRandom.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SecureRandom
  2. Random
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def betweenDouble(minInclusive: Double, maxExclusive: Double): F[Double]

    Returns the next pseudorandom, uniformly distributed double value between min (inclusive) and max (exclusive) from this random number generator's sequence.

    Returns the next pseudorandom, uniformly distributed double value between min (inclusive) and max (exclusive) from this random number generator's sequence.

    Definition Classes
    Random
  2. abstract def betweenFloat(minInclusive: Float, maxExclusive: Float): F[Float]

    Returns the next pseudorandom, uniformly distributed float value between min (inclusive) and max (exclusive) from this random number generator's sequence.

    Returns the next pseudorandom, uniformly distributed float value between min (inclusive) and max (exclusive) from this random number generator's sequence.

    Definition Classes
    Random
  3. abstract def betweenInt(minInclusive: Int, maxExclusive: Int): F[Int]

    Returns a pseudorandom, uniformly distributed int value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

    Returns a pseudorandom, uniformly distributed int value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

    Definition Classes
    Random
  4. abstract def betweenLong(minInclusive: Long, maxExclusive: Long): F[Long]

    Returns a pseudorandom, uniformly distributed long value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

    Returns a pseudorandom, uniformly distributed long value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

    Definition Classes
    Random
  5. abstract def nextAlphaNumeric: F[Char]

    Returns a pseudorandomly chosen alphanumeric character, equally chosen from A-Z, a-z, and 0-9.

    Returns a pseudorandomly chosen alphanumeric character, equally chosen from A-Z, a-z, and 0-9.

    Definition Classes
    Random
  6. abstract def nextBoolean: F[Boolean]

    Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.

    Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.

    Definition Classes
    Random
  7. abstract def nextBytes(n: Int): F[Array[Byte]]

    Generates n random bytes and returns them in a new array.

    Generates n random bytes and returns them in a new array.

    Definition Classes
    Random
  8. abstract def nextDouble: F[Double]

    Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.

    Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.

    Definition Classes
    Random
  9. abstract def nextFloat: F[Float]

    Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence.

    Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence.

    Definition Classes
    Random
  10. abstract def nextGaussian: F[Double]

    Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence

    Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence

    Definition Classes
    Random
  11. abstract def nextInt: F[Int]

    Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.

    Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.

    Definition Classes
    Random
  12. abstract def nextIntBounded(n: Int): F[Int]

    Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

    Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

    Definition Classes
    Random
  13. abstract def nextLong: F[Long]

    Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.

    Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.

    Definition Classes
    Random
  14. abstract def nextLongBounded(n: Long): F[Long]

    Returns a pseudorandom, uniformly distributed long value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

    Returns a pseudorandom, uniformly distributed long value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

    Definition Classes
    Random
  15. abstract def nextPrintableChar: F[Char]

    Returns the next pseudorandom, uniformly distributed value from the ASCII range 33-126.

    Returns the next pseudorandom, uniformly distributed value from the ASCII range 33-126.

    Definition Classes
    Random
  16. abstract def nextString(length: Int): F[String]

    Returns a pseudorandomly generated String.

    Returns a pseudorandomly generated String.

    Definition Classes
    Random
  17. abstract def shuffleList[A](l: List[A]): F[List[A]]

    Returns a new collection of the same type in a randomly chosen order.

    Returns a new collection of the same type in a randomly chosen order.

    Definition Classes
    Random
  18. abstract def shuffleVector[A](v: Vector[A]): F[Vector[A]]

    Returns a new collection of the same type in a randomly chosen order.

    Returns a new collection of the same type in a randomly chosen order.

    Definition Classes
    Random

Concrete 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. def elementOf[A](xs: Iterable[A])(implicit ev: MonadThrow[F]): F[A]

    Pseudorandomly chooses an element of the given collection.

    Pseudorandomly chooses an element of the given collection.

    returns

    a failed effect (NoSuchElementException) if the given collection is empty

    Definition Classes
    Random
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  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. def mapK[G[_]](f: ~>[F, G]): SecureRandom[G]

    Modifies the context in which this Random operates using the natural transformation f.

    Modifies the context in which this Random operates using the natural transformation f.

    returns

    a Random in the new context obtained by mapping the current one using f

    Definition Classes
    SecureRandomRandom
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def oneOf[A](x: A, xs: A*)(implicit ev: Applicative[F]): F[A]

    Pseudorandomly chooses one of the given values.

    Pseudorandomly chooses one of the given values.

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

Inherited from Random[F]

Inherited from AnyRef

Inherited from Any

Ungrouped