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.
Uuidm is made of a single, independent, module and distributed under
the new BSD license.
Module home page : http://erratique.ch/software/uuidm
Best,
Daniel
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
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
> Digest.t is equivalent to string in the interface. For instance:
Thanks for pointing this out, I was going crazy the other day that
there was no Digest.to_bytes function... Didn't realize that Digest.t
wasn't abstract, have to learn to read. Corrected in the repository.
Best,
Daniel