diff options
Diffstat (limited to 'source4')
-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 || |