Portability | portable |
---|---|
Stability | experimental |
Maintainer | aslatter@gmail.com |
Haskell bindings to libuuid. The library libuuid is available as a part of e2fsprogs: http://e2fsprogs.sourceforge.net/.
This library is useful for creating, comparing, parsing and printing Universally Unique Identifiers. See http://en.wikipedia.org/wiki/UUID for the general idea.
Documentation
The UUID type. Represents 128-bits of identification.
fromString :: String -> Maybe UUIDSource
toStringUpper :: UUID -> StringSource
toStringLower :: UUID -> StringSource
Creates a new UUID
. If /dev/urandom is available, it will be used.
Otherwise a UUID will be generated based on the current time and the
hardware MAC address, if available.
generateRandom :: IO UUIDSource
Create a new UUID
. If /dev/urandom is available, it will be used.
Otherwise a psuedorandom generator will be used.
Create a new UUID
. The UUID will be generated based on the
current time and the hardware MAC address, if available.