DefaultSeedExtractors

class Object
trait Matchable
class Any
object SeedExtractor.type

Implicits

Implicits

implicit def fromToString[S]: SeedExtractor[S]

The toString method is a good default for almost all types because it is either going to be unique per instance of an object with no overriding definition of it (i.e. not a case class) OR it will be something like a tuple / case class which overrides the definition in such a way that two equal objects will have the same value from calling toString.

The toString method is a good default for almost all types because it is either going to be unique per instance of an object with no overriding definition of it (i.e. not a case class) OR it will be something like a tuple / case class which overrides the definition in such a way that two equal objects will have the same value from calling toString.

Note:

this is low priority to avoid collisions with other shared implicit definitions.

implicit lazy val int: SeedExtractor[Int]
implicit lazy val long: SeedExtractor[Long]
implicit val string: SeedExtractor[String]

Extract a deterministic and collision-resistant number from the given string.

Extract a deterministic and collision-resistant number from the given string.

Creates a name-based UUID and extracts the most significant digits of the MD5 hash.

implicit val uuid: SeedExtractor[UUID]

Uses the most significant digits of the UUID as the seed.

Uses the most significant digits of the UUID as the seed.