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:
parent
15e84f47c5
commit
dd02669187
@ -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…
Reference in New Issue
Block a user