1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r6731: add a useful function for getting a guid with all bits to 0

metze
(This used to be commit 161ecce744)
This commit is contained in:
Stefan Metzmacher 2005-05-11 13:17:38 +00:00 committed by Gerald (Jerry) Carter
parent 15e84f47c5
commit dd02669187

View File

@ -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 ||