diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php
index 4212bf5a32c1cf1095097628dfd769250d03c106..2a6ceaf4684380a1076a8c5771f8d25145114d46 100644
--- a/apps/calendar/lib/object.php
+++ b/apps/calendar/lib/object.php
@@ -210,6 +210,14 @@ class OC_Calendar_Object{
 
 		return true;
 	}
+	
+	/**
+     * @brief Creates a UID
+     * @return string
+     */
+    protected static function createUID(){
+        return substr(md5(rand().time()),0,10);
+    }
 
 	/**
 	 * @brief Extracts data from a vObject-Object