pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\Random\Fixed Class Reference
+ Inheritance diagram for fpoirotte\Pssht\Random\Fixed:

Public Member Functions

 __construct ($data)
 
 getBytes ($count)
 

Protected Attributes

 $data
 Fixed data to return.
 

Detailed Description

Fake PRNG that returns a fixed string.

Definition at line 17 of file Fixed.php.

Constructor & Destructor Documentation

fpoirotte\Pssht\Random\Fixed::__construct (   $data)

Construct a new fake PRNG.

Parameters
string$dataFixed data to return.

Definition at line 28 of file Fixed.php.

References fpoirotte\Pssht\Random\Fixed\$data.

Member Function Documentation

fpoirotte\Pssht\Random\Fixed::getBytes (   $count)

Get (pseudo-)random bytes.

Parameters
int$countNumber of (pseudo-)random bytes to retrieve.
Return values
stringA character string composed of $count (pseudo-)random bytes.

Implements fpoirotte\Pssht\Random\RandomInterface.

Definition at line 37 of file Fixed.php.


The documentation for this class was generated from the following file: