Skip to content

Commit 7e44ea9

Browse files
committed
Use microtime as id in Protocol instead of time
1 parent 2b33b45 commit 7e44ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DNode/Protocol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function __construct($wrapper)
1414
public function create()
1515
{
1616
// FIXME: Random ID generation, should be unique
17-
$id = time();
17+
$id = microtime();
1818
$this->sessions[$id] = new Session($id, $this->wrapper);
1919
return $this->sessions[$id];
2020
}

0 commit comments

Comments
 (0)