r6731: add a useful function for getting a guid with all bits to 0
authorStefan Metzmacher <metze@samba.org>
Wed, 11 May 2005 13:17:38 +0000 (13:17 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:39 +0000 (13:16 -0500)
metze

source/librpc/ndr/ndr_misc.c

index b9edc0ae9cc8863e8753b4d42889b4719d8c2bbd..3d885a40e55d102399666f3493d40bcac65cc4f0 100644 (file)
@@ -91,6 +91,16 @@ struct GUID GUID_random(void)
        return guid;
 }
 
        return guid;
 }
 
+/* generate a random GUID */
+struct GUID GUID_zero(void)
+{
+       struct GUID guid;
+
+       ZERO_STRUCT(guid);
+
+       return guid;
+}
+
 BOOL GUID_all_zero(const struct GUID *u)
 {
        if (u->time_low != 0 ||
 BOOL GUID_all_zero(const struct GUID *u)
 {
        if (u->time_low != 0 ||