Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Win32.php File Reference


Detailed Description

RNG using Window's CryptGenRandom() function.

This function currently does not work with any released PHP version.

Definition in file Win32.php.

Go to the source code of this file.

Functions

 __destruct ()
 isAvailable ()
 _getRandomByte ($modulo=0)
 _getRandomString ($length)

Variables

return false
 $win32 = &new win32
 $PROV_RSA_FULL = 1
 $CRYPT_VERIFYCONTEXT = 0xf0000000
$this _provider = 0
 $rv = (bool) $win32->CryptAcquireContext($this->_provider, 0, 0, $PROV_RSA_FULL, $CRYPT_VERIFYCONTEXT)
$this _win32 = $win32
 $hProv = str_repeat("\0", 256)
 $szContainer = "\0"
 $szProvider = "\0"


Function Documentation

__destruct  ) 
 

return void

Definition at line 88 of file Win32.php.

_getRandomByte modulo = 0  )  [static]
 

Parameters:
$modulo int 0 thru 255
Returns:
int 0 to 255

Definition at line 123 of file Win32.php.

_getRandomString length  )  [static]
 

Parameters:
$length int length of string
Returns:
string String of random characters of length $length

Definition at line 164 of file Win32.php.

isAvailable  )  [static]
 

Definition at line 102 of file Win32.php.

Referenced by fbRandom::getInstance().


Generated on Fri Mar 19 12:52:28 2004 for Freebeer by doxygen 1.3.6-20040222