function _esi__get_random_seed in ESI: Edge Side Includes 6.2
Get a random 32-character string
1 call to _esi__get_random_seed()
- _esi__rotate_seed_key in ./
esi.inc - Rotate the seed key.
File
- ./
esi.inc, line 32 - Helper functions for the ESI module.
Code
function _esi__get_random_seed() {
$seed = '';
for ($i = 0; $i < 32; $i++) {
// get a random character from the printable ASCII character set: 32-176
$seed += chr(mt_rand(32, 176));
}
return $seed;
}