diff --git a/source/librpc/ndr/ndr_misc.c b/source/librpc/ndr/ndr_misc.c
index b9edc0ae9cc..3d885a40e55 100644
--- a/source/librpc/ndr/ndr_misc.c
+++ b/source/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 ||