[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] [xen-api-libs.hg:PATCH 0 of 2] Uuid stuff.



Here is a new version of the patch to xen-api-libs.hg:

<snip/>

  (** Create a fresh UUID *)
  val make_uuid : unit ->  'a t
+val make_uuid_prng : unit ->  'a t
+val make_uuid_urnd : unit ->  'a t
+val make_uuid_rnd : unit ->  'a t

I recommend adding some ocamldoc comments in the mli file, to
explain the semantics.

Looking at the interface on its own, I'd guess that:

+val make_uuid_prng : unit ->  'a t

This one comes from a pseudo-random number generator.

+val make_uuid_urnd : unit ->  'a t

This one comes straight from /dev/urandom

+val make_uuid_rnd : unit ->  'a t

This one comes straight from /dev/random

Are my guesses correct?

Cheers,
Jonathan

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.