ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
Random.php
Go to the documentation of this file.
1
<?
php
2
namespace
SimpleSAML\Utils
;
3
9
class
Random
10
{
11
15
const
ID_LENGTH
= 43;
16
26
public
static
function
generateID
()
27
{
28
return
'_'
.bin2hex(openssl_random_pseudo_bytes((
int
)((self::ID_LENGTH - 1)/2)));
29
}
30
}
php
An exception for terminatinating execution or to throw for unit testing.
SimpleSAML\Utils\Random
Definition:
Random.php:10
SimpleSAML\Utils\Random\generateID
static generateID()
Generate a random identifier, ID_LENGTH bytes long.
Definition:
Random.php:26
SimpleSAML\Utils\Random\ID_LENGTH
const ID_LENGTH
The fixed length of random identifiers.
Definition:
Random.php:15
SimpleSAML\Utils
Definition:
Arrays.php:2
libs
composer
vendor
simplesamlphp
simplesamlphp
lib
SimpleSAML
Utils
Random.php
Generated on Tue Sep 30 2025 19:00:57 for ILIAS by
1.9.4 (using
Doxyfile
)