@@ -0,0 +1,28 @@
3+ Copyright : (c) 2012 Antoine Latter
7+ Maintainer : aslatter@gmail.com
8+ Stability : experimental
9+ Portability : portable
11+ This module implements Version 4 UUIDs as specified
14+ These UUIDs are generated from a psuedo-random generator.
15+ We use the System.Random 'R.StdGen' as our random source.
17+ All of the logic is encapsulated in the 'R.Random' instance
18+ for the UUID type, so you are free to use the random generator
21+module Data.UUID.V4 (nextRandom) where
24+import qualified System.Random as R
27+nextRandom = R.randomIO