From 389cfee579a3222e6f536971af2fc0cb30596475 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 14 Oct 2008 02:41:20 +0200 Subject: Use GUID_random. --- source3/lib/util_uuid.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util_uuid.c b/source3/lib/util_uuid.c index 7e67d791e3..c681b66d34 100644 --- a/source3/lib/util_uuid.c +++ b/source3/lib/util_uuid.c @@ -38,17 +38,6 @@ void smb_uuid_unpack(const UUID_FLAT in, struct GUID *uu) memcpy(uu->node, in.info+10, 6); } -void smb_uuid_generate_random(struct GUID *uu) -{ - UUID_FLAT tmp; - - generate_random_buffer(tmp.info, sizeof(tmp.info)); - smb_uuid_unpack(tmp, uu); - - uu->clock_seq[0] = (uu->clock_seq[0] & 0x3F) | 0x80; - uu->time_hi_and_version = (uu->time_hi_and_version & 0x0FFF) | 0x4000; -} - /***************************************************************** Return the binary string representation of a GUID. Caller must free. -- cgit