public static function genId($name) { return uniqid($name, true); }
/** * @return int */ protected function getNextSuffix() { if ($this->counter > 2000000000.0) { $this->counter = 1000000000.0; $this->seed = GeneratorSupport::genId($this->name); } return (string) $this->counter++; }