std.uuid is ready for review

Piotr Szturmaj bncrbme at
Mon Feb 6 15:00:26 PST 2012

Johannes Pfau wrote:
> Code:
> API-Docs:

@trusted UUID shaUUID(const(char[]) name, UUID namespace = nilUUID);
@trusted UUID shaUUID(const(ubyte[]) data, UUID namespace = nilUUID);

When casting from void[] to ubyte[] will be working in CTFE (if ever), 
you might use just one function taking const(void[]) and cast it to 
ubyte[] internally.

About name, I think it should be sha1UUID.

More information about the Digitalmars-d mailing list