summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-14 02:41:20 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-14 02:41:20 +0200
commit389cfee579a3222e6f536971af2fc0cb30596475 (patch)
tree3bcd6271861fa3166791aee6aa8ff5d7156e6301 /source3/lib
parent4c81727a003e4c49c314e0c5a1b4584b8825e7fe (diff)
downloadsamba-389cfee579a3222e6f536971af2fc0cb30596475.tar.gz
samba-389cfee579a3222e6f536971af2fc0cb30596475.tar.bz2
samba-389cfee579a3222e6f536971af2fc0cb30596475.zip
Use GUID_random.
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_uuid.c11
1 files changed, 0 insertions, 11 deletions
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.