コード例 #1
0
ファイル: SessionAbstract.php プロジェクト: szeber/yapep_base
 /**
  * Generates a session ID.
  *
  * @return string
  */
 protected function generateId()
 {
     return Random::getPseudoString(32);
 }
コード例 #2
0
ファイル: RandomTest.php プロジェクト: szeber/yapep_base
 /**
  * Tests the method check
  */
 public function testGetPseudoStringMethodChecks()
 {
     try {
         Random::getPseudoString(61, 'nonexistent');
         $this->fail('The method check fails');
     } catch (Exception $exception) {
     }
 }