From: Stefan Metzmacher Date: Wed, 11 May 2005 13:17:38 +0000 (+0000) Subject: r6731: add a useful function for getting a guid with all bits to 0 X-Git-Tag: samba-misc-tags/initial-v4-0-unstable~9312 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=161ecce7441649629b97ce1ca903b9704e06f66b r6731: add a useful function for getting a guid with all bits to 0 metze --- diff --git a/source/librpc/ndr/ndr_misc.c b/source/librpc/ndr/ndr_misc.c index b9edc0ae9cc..3d885a40e55 100644 --- a/source/librpc/ndr/ndr_misc.c +++ b/source/librpc/ndr/ndr_misc.c @@ -91,6 +91,16 @@ struct GUID GUID_random(void) 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 ||