uuid-1.3.10: For creating, comparing, parsing and printing Universally Unique Identifiers

Copyright(c) 2008 Jason Dusek (c) 2009 Mark Lentczner (c) 2009-2010,2012 Antoine Latter
LicenseBSD-style
Maintaineraslatter@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Data.UUID.V1

Description

RFC 4122 Version 1 UUID state machine.

The generated UUID is based on the hardware MAC address and the system clock.

If we cannot lookup the MAC address we seed the generator with a psuedo-random number.

Synopsis

Documentation

nextUUID :: IO (Maybe UUID) Source

Returns a new UUID derived from the local hardware MAC address and the current system time. Is generated according to the Version 1 UUID sepcified in RFC 4122.

Returns Nothing if you request UUIDs too quickly.