src/Util/IdGenerator.php
public static function generateId()
    {
        while ($rand = rand(1, PHP_INT_MAX)) {
            if (!in_array($rand, static::$generatedIds, true)) {
                static::$generatedIds[] = $rand;
                return $rand;
            }
        }
    }
public static function generateId()
    {
        while ($rand = rand(1, PHP_INT_MAX)) {
            if (!in_array($rand, static::$generatedIds, true)) {
                static::$generatedIds[] = $rand;
                return $rand;
            }
        }
    }
public static function generateId ( ) { while ( $ rand = rand ( 1 , PHP_INT_MAX ) ) { if ( ! in_array ( $ rand , static :: $ generatedIds , true ) ) { static :: $ generatedIds [ ] = $ rand ; return $ rand ; } } }
Generate a not used id.

@return int
Generate a not used id .