This class provides random data in serveral forms.
The supported forms include:
Located in /phpsatk-lib/global/org.eenterphace.sat.crypto.rand/rand.source.php (line 39)
Gets a random base64 string
This function is useful when building salts for base64 encoded hashes
Gets random binary data
This function returns non-printable characters!!
Generates a (pseudo) Random Number
This function is the datasource for the other functions. You might pass an exponent to create floating point numbers:
- RandSource::getNumber(0,1000, -3);
- // -> will return a random number between 0 and 1 with three decimals
Fetches a random string of given length
Does not work on multi-byte characters.
Special characters do not include chars not found on a standard keyboard as well as characters which usually cause trouble when typing them. (maybe this is not true for some keyboard layouts -> TELL ME)
Documentation generated on Mon, 21 May 2007 10:35:14 +0200 by phpDocumentor 1.3.0RC5