Update test

and some cleanup
This commit is contained in:
Jeremy Benoist
2016-08-24 22:29:36 +02:00
parent b1afef30dc
commit eddda878a0
3 changed files with 41 additions and 18 deletions

View File

@ -627,7 +627,7 @@ class Entry
public function generateUuid()
{
if (empty($this->uuid) || is_null($this->uuid)) {
if (null === $this->uuid) {
// @see http://blog.kevingomez.fr/til/2015/07/26/why-is-uniqid-slow/ for true parameter
$this->uuid = uniqid('', true);
}