Re: Extending uniqid() or not?

From: Date: Sun, 02 Feb 2014 10:33:00 +0000
Subject: Re: Extending uniqid() or not?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-71990@lists.php.net to get a copy of this message
Hi! > It may be extend to produce safe unique ID > > string uniqid(TRUE) - Returns random ID string which is safe to use > security purposes. What's wrong with mcrypt_create_iv() which exists specifically for the purpose of generating secure random string? > P.S. Is anyone working UUID? PostgreSQL is using OSSP's UUID lib, it's good > for PHP. > http://www.postgresql.org/docs/9.2/interactive/uuid-ossp.html There's uuid extension for PHP as far as I can see: http://ossp-uuid.sourcearchive.com/documentation/1.6.2-1ubuntu2/php_2uuid_8c_source.html -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#71990) next »