Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

btwoc(
string $long
)
:
string
Get the big endian two's complement of a given big integer in binary notation
Name | Type | Description |
---|---|---|
$long | string |
Type | Description |
---|---|
string |

fromBinary(
string $binary
)
:
string
Translate a binary form into a big integer string
Name | Type | Description |
---|---|---|
$binary | string |
Type | Description |
---|---|
string |

rand(
string|int $minimum, string|int $maximum
)
:
string
Generate a pseudorandom number within the given range.
Will attempt to read from a systems RNG if it exists or else utilises a simple random character to maximum length process. Simplicity is a factor better left for development...
Name | Type | Description |
---|---|---|
$minimum | string|int | |
$maximum | string|int |
Type | Description |
---|---|
string |