isSecure = $isSecure; } public function getRandomBytes($bytecount) { $result = ''; for ($i = 0; $i < $bytecount; $i++) { $result .= chr($i); } return $result; } public function isCryptographicallySecure() { return $this->isSecure; } }