Method |
Description |
|
__construct ( integer | null $prime = null ) |
Energon constructor. |
|
generate ( integer | null $prime = null ) : array |
Generates a set of numbers ready for use. |
|
generatePrime ( ) : integer |
Generate a random large prime. |
|
generateRandomInteger ( ) : integer |
Generate a random large number. |
|
getInverse ( ) : integer |
Get the inverse of the current prime. |
|
getPrime ( ) : integer |
Get the current prime. |
|
getRand ( ) : integer |
Alias method for getting a random big number. |
|
setPrime ( mixed $prime ) |
Safely set the current prime as a BigInteger. |
|