IzUUIDPlatformSpecific

izumi.fundamentals.platform.uuid.IzUUIDPlatformSpecific

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait IzUUIDImpl
object IzUUID

Members list

Value members

Concrete methods

final def generateRandomUUID(): UUID
protected def makeNode(): Long

Generate the 48-bit node ID for Time UUIDs.

Generate the 48-bit node ID for Time UUIDs.

On JVM, we hash all local network addresses to create a node ID that is unique to this host. Per RFC 4122, since we're not using a real MAC address, we set the multicast bit (bit 0 of the first octet) to indicate this is a randomly/hash-generated node ID.

Attributes