svn commit: samba r3787 - in branches/SAMBA_4_0/source/librpc/ndr: .
metze at samba.org
metze at samba.org
Tue Nov 16 13:14:02 GMT 2004
Author: metze
Date: 2004-11-16 13:14:02 +0000 (Tue, 16 Nov 2004)
New Revision: 3787
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3787
Log:
a function to generate a random GUID
metze
Modified:
branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c
Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c 2004-11-16 13:05:51 UTC (rev 3786)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c 2004-11-16 13:14:02 UTC (rev 3787)
@@ -1195,6 +1195,16 @@
return NT_STATUS_OK;
}
+/* generate a random GUID */
+struct GUID GUID_random(void)
+{
+ struct GUID guid;
+
+ generate_random_buffer((uint8_t *)&guid, sizeof(guid));
+
+ return guid;
+}
+
/*
its useful to be able to display these in debugging messages
*/
More information about the samba-cvs
mailing list