SecureRandom

cats.effect.std.SecureRandom
See theSecureRandom companion object
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.

Attributes

Companion:
object
Source:
SecureRandom.scala
Graph
Supertypes
trait Random[F]
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

override def mapK[G[_]](f: FunctionK[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.

Attributes

Returns:

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

Definition Classes
Source:
SecureRandom.scala

Inherited methods

def betweenDouble(minInclusive: Double, maxExclusive: Double): F[Double]
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
def betweenFloat(minInclusive: Float, maxExclusive: Float): F[Float]
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
def betweenInt(minInclusive: Int, maxExclusive: Int): F[Int]
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
def betweenLong(minInclusive: Long, maxExclusive: Long): F[Long]
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
def elementOf[A](xs: Iterable[A])(implicit ev: MonadThrow[F]): F[A]
Implicitly added by catsKleisliSecureRandom

Pseudorandomly chooses an element of the given collection.

Pseudorandomly chooses an element of the given collection.

Attributes

Returns:

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

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Returns:

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

Inherited from:
Random
Source:
Random.scala
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala

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.

Attributes

Inherited from:
Random
Source:
Random.scala
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala

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.

Attributes

Inherited from:
Random
Source:
Random.scala
def nextBytes(n: Int): F[Array[Byte]]
Implicitly added by catsKleisliSecureRandom

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

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

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala

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.

Attributes

Inherited from:
Random
Source:
Random.scala
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala

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.

Attributes

Inherited from:
Random
Source:
Random.scala
Implicitly added by catsKleisliSecureRandom

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

Attributes

Inherited from:
Random
Source:
Random.scala

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

Attributes

Inherited from:
Random
Source:
Random.scala
def nextInt: F[Int]
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
def nextIntBounded(n: Int): F[Int]
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
def nextLong: F[Long]
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala

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.

Attributes

Inherited from:
Random
Source:
Random.scala
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala

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.

Attributes

Inherited from:
Random
Source:
Random.scala
def nextString(length: Int): F[String]
Implicitly added by catsKleisliSecureRandom

Returns a pseudorandomly generated String.

Returns a pseudorandomly generated String.

Attributes

Inherited from:
Random
Source:
Random.scala
def nextString(length: Int): F[String]

Returns a pseudorandomly generated String.

Returns a pseudorandomly generated String.

Attributes

Inherited from:
Random
Source:
Random.scala
def oneOf[A](x: A, xs: A*)(implicit ev: Applicative[F]): F[A]
Implicitly added by catsKleisliSecureRandom

Pseudorandomly chooses one of the given values.

Pseudorandomly chooses one of the given values.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
def shuffleList[A](l: List[A]): F[List[A]]
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala
def shuffleVector[A](v: Vector[A]): F[Vector[A]]
Implicitly added by catsKleisliSecureRandom

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.

Attributes

Inherited from:
Random
Source:
Random.scala
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.

Attributes

Inherited from:
Random
Source:
Random.scala