Seed

object Seed
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def apply(s: Long): Seed

Generate a deterministic seed.

Generate a deterministic seed.

def fromBase64(s: String): Try[Seed]

Parse a Base-64 encoded seed, returning a Seed value.

Parse a Base-64 encoded seed, returning a Seed value.

This method requires the exact format produced by toBase64 (i.e. a 44-character string using the web-safe Base-64 alphabet). Other encodings must produce precisely the same outputs to be supported.

This method will throw an IllegalArgumentException if parsing fails.

def fromLongs(a: Long, b: Long, c: Long, d: Long): Seed

Generate a seed directly from four Long values.

Generate a seed directly from four Long values.

Warning: unlike Seed.apply(Long), this method just directly constructs a seed from the four Long values. Prefer using Seed(Long) if you aren't sure whether these will be good seed values.

def random(): Seed

Generate a random seed.

Generate a random seed.