"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Neos.Flow/Classes/Utility/Algorithms.php" between
flow-development-collection-7.1.0.tar.gz and flow-development-collection-7.1.1.tar.gz

About: TYPO3 Flow is a web application platform enabling developers creating fast, reliable and complex web solutions ("the next level of PHP programming"; old name "FLOW3").

Algorithms.php  (flow-development-collection-7.1.0):Algorithms.php  (flow-development-collection-7.1.1)
skipping to change at line 43 skipping to change at line 43
* @return string The universally unique id * @return string The universally unique id
* @throws \Exception * @throws \Exception
* @todo Optionally generate type 1 and type 5 UUIDs. * @todo Optionally generate type 1 and type 5 UUIDs.
*/ */
public static function generateUUID(): string public static function generateUUID(): string
{ {
if (is_callable('uuid_create')) { if (is_callable('uuid_create')) {
return strtolower(uuid_create(UUID_TYPE_RANDOM)); return strtolower(uuid_create(UUID_TYPE_RANDOM));
} }
return (string)Uuid::uuid4(); return Uuid::uuid4()->toString();
} }
/** /**
* Returns a string of random bytes. * Returns a string of random bytes.
* *
* @param int $count Number of bytes to generate * @param int $count Number of bytes to generate
* @return string Random bytes * @return string Random bytes
* @throws \Exception * @throws \Exception
*/ */
public static function generateRandomBytes(int $count): string public static function generateRandomBytes(int $count): string
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)