mirror of
https://github.com/samba-team/samba.git
synced 2025-01-31 01:48:16 +03:00
r6731: add a useful function for getting a guid with all bits to 0
metze
This commit is contained in:
parent
491d7804f5
commit
161ecce744
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user