From dd0266918748a7da3e0a4f19ba96f96cee2eaca8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 11 May 2005 13:17:38 +0000 Subject: r6731: add a useful function for getting a guid with all bits to 0 metze (This used to be commit 161ecce7441649629b97ce1ca903b9704e06f66b) --- source4/librpc/ndr/ndr_misc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4') diff --git a/source4/librpc/ndr/ndr_misc.c b/source4/librpc/ndr/ndr_misc.c index b9edc0ae9c..3d885a40e5 100644 --- a/source4/librpc/ndr/ndr_misc.c +++ b/source4/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 || -- cgit