caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dave Benjamin <dave@ramenlabs.com>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: caml-list caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] [ANN] Uuidm 0.9.0
Date: Wed, 11 Jun 2008 22:08:17 -0700	[thread overview]
Message-ID: <4850AF41.90506@ramenlabs.com> (raw)
In-Reply-To: <F9E10C48-205B-438D-B2E2-1912DBFB1B18@erratique.ch>

Daniel Bünzli wrote:
> I'd like to announce the existence of the following snippet of code.
> 
> Uuidm is an OCaml module implementing 128 bits universally unique 
> identifiers version 3, 5 (name based with MD5, SHA-1 hashing) and 4 
> (random based) according to RFC 4122.

Thanks, Daniel!

I don't think you need Obj.magic for the md5 function - Digest.t is 
equivalent to string in the interface. For instance:

# module M : sig val md5 : string -> string end = struct let md5 = 
Digest.string end;;
module M : sig val md5 : string -> string end
# M.md5 "AsdfasdfasdF";;
- : string = "\248~\198\237v\220\165d\187\214\200\158\\\"=\133"

Cheers,
Dave


  reply	other threads:[~2008-06-12  5:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11 16:06 Daniel Bünzli
2008-06-12  5:08 ` Dave Benjamin [this message]
2008-06-12  8:00   ` [Caml-list] " Daniel Bünzli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4850AF41.90506@ramenlabs.com \
    --to=dave@ramenlabs.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=daniel.buenzli@erratique.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).