string Crypt_CHAP::generateChallenge ([string $varname = 'challenge' [, int $size = 8]])
string Crypt_CHAP::generateChallenge
This method generates a new random challenge and stores it in the given property, the default size of the challenge is 8 bytes.
string $varname - name of the property for storing the challenge
int $size - the size of the challenge
string - a String containing the challenge
This function can not be called statically.
Example 22-1. Using Crypt_CHAP::generateChallenge()