Skip to content
Snippets Groups Projects
Commit a899d179 authored by Jaime Perez's avatar Jaime Perez
Browse files

Generate track IDs in a better way. Solves #58.

parent 8cbd06a7
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,7 @@ class SimpleSAML_Session {
$sh = SimpleSAML_SessionHandler::getSessionHandler();
$this->sessionId = $sh->newSessionId();
$this->trackid = substr(md5(uniqid(rand(), true)), 0, 10);
$this->trackid = SimpleSAML_Utilities::stringToHex(SimpleSAML_Utilities::generateRandomBytes(5));
$this->dirty = TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment