Johannes Pfau wrote:
Code: https://github.com/jpf91/phobos/blob/std.uuid/std/uuid.d API-Docs: http://dl.dropbox.com/u/24218791/d/src/uuid.html
<snip> @trusted UUID shaUUID(const(char[]) name, UUID namespace = nilUUID); @trusted UUID shaUUID(const(ubyte[]) data, UUID namespace = nilUUID); </snip>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.