diff --git a/session_api.module b/session_api.module
index 0878cd3..708db4f 100644
--- a/session_api.module
+++ b/session_api.module
@@ -28,7 +28,7 @@ function session_api_get_sid($create = TRUE) {
   if (!session_api_available()) {
     return FALSE;
   }
-  
+
   if (!isset($sid) || !$sid) {
     $sid = FALSE;
 
@@ -37,7 +37,7 @@ function session_api_get_sid($create = TRUE) {
       $session_id = $_COOKIE['session_api_session'];
       $sid = db_result(db_query("SELECT sid FROM {session_api} WHERE session_id = '%s'", array(':session_id' => $session_id)));
     }
-    // If the caller doesn't want to create a new session if it didn't exist, 
+    // If the caller doesn't want to create a new session if it didn't exist,
     // then return here.
     else if (!$create) {
       // Return a negative value here, since it won't collide with any
@@ -45,7 +45,7 @@ function session_api_get_sid($create = TRUE) {
     	return -1;
     }
     else {
-       $session_id = md5(ip_address() . time() . drupal_get_private_key());
+       $session_id = md5(ip_address() . mircotime() . drupal_get_private_key());
     }
 
     // For the cookie we use the same domain that Drupal's own session cookie uses.
