diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-05-11 13:17:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:39 -0500 |
commit | dd0266918748a7da3e0a4f19ba96f96cee2eaca8 (patch) | |
tree | 8efdc86b1000f8d8cb3f3e3a754bb0b236c8e4a1 | |
parent | 15e84f47c55b99f7b75681300f4eae381cd276d2 (diff) | |
download | samba-dd0266918748a7da3e0a4f19ba96f96cee2eaca8.tar.gz samba-dd0266918748a7da3e0a4f19ba96f96cee2eaca8.tar.bz2 samba-dd0266918748a7da3e0a4f19ba96f96cee2eaca8.zip |
r6731: add a useful function for getting a guid with all bits to 0
metze
(This used to be commit 161ecce7441649629b97ce1ca903b9704e06f66b)
-rw-r--r-- | source4/librpc/ndr/ndr_misc.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 || |