WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: Jonathan Knowles <Jonathan.Knowles@xxxxxxxxxxxxx>
Subject: Re: [Xen-API] [xen-api-libs.hg:PATCH 0 of 2] Uuid stuff.
From: Magnus Therning <magnus.therning@xxxxxxxxxxxxx>
Date: Tue, 3 Aug 2010 12:14:27 +0100
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 03 Aug 2010 04:19:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C57F7FE.3070203@xxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1280418411@xxxxxxxxxxxxxxxxxxxxxx> <4C57E65E.7030401@xxxxxxxxxxxxx> <4C57F7FE.3070203@xxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100721 Lightning/1.0b2pre Thunderbird/3.1.1
On 03/08/10 12:05, Jonathan Knowles wrote:
>> 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.

Yes, that is the plan, but tradition dictates that I postpone documenting it
as long as possible ;-)

> 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?

Yes, you are correct!

Cheers,
M

-- 
Magnus Therning
magnus.therning@xxxxxxxxxxxxx          Jabber: magnusth@eng

There does not now, nor will there ever, exist a programming language
in which it is the least bit hard to write bad programs.
     -- Flon's Axiom

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

<Prev in Thread] Current Thread [Next in Thread>