git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
491d780
)
r6731: add a useful function for getting a guid with all bits to 0
author
Stefan Metzmacher
<metze@samba.org>
Wed, 11 May 2005 13:17:38 +0000
(13:17 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:16:39 +0000
(13:16 -0500)
metze
source/librpc/ndr/ndr_misc.c
patch
|
blob
|
history
diff --git
a/source/librpc/ndr/ndr_misc.c
b/source/librpc/ndr/ndr_misc.c
index b9edc0ae9cc8863e8753b4d42889b4719d8c2bbd..3d885a40e55d102399666f3493d40bcac65cc4f0 100644
(file)
--- 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;
}
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 ||