mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-24 19:59:10 -04:00
ALPHA 3.0.2a
This commit is contained in:
@@ -53,6 +53,9 @@ class CombGenerator implements RandomGeneratorInterface
|
||||
*
|
||||
* @param integer $length The number of bytes of random binary data to generate
|
||||
* @return string A binary string
|
||||
* @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException if `Moontoast\Math\BigNumber` is not present
|
||||
* @throws \InvalidArgumentException if length is not a positive integer
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function generate($length)
|
||||
{
|
||||
|
||||
@@ -72,6 +72,10 @@ class DefaultTimeGenerator implements TimeGeneratorInterface
|
||||
* could arise when the clock is set backwards in time or if the node ID
|
||||
* changes.
|
||||
* @return string A binary string
|
||||
* @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException if called on a 32-bit system and
|
||||
* `Moontoast\Math\BigNumber` is not present
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \Exception if it was not possible to gather sufficient entropy
|
||||
*/
|
||||
public function generate($node = null, $clockSeq = null)
|
||||
{
|
||||
@@ -111,6 +115,8 @@ class DefaultTimeGenerator implements TimeGeneratorInterface
|
||||
*
|
||||
* @param string|int $node A node value that may be used to override the node provider
|
||||
* @return string Hexadecimal representation of the node ID
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \Exception
|
||||
*/
|
||||
protected function getValidNode($node)
|
||||
{
|
||||
|
||||
@@ -28,6 +28,7 @@ class RandomBytesGenerator implements RandomGeneratorInterface
|
||||
*
|
||||
* @param integer $length The number of bytes of random binary data to generate
|
||||
* @return string A binary string
|
||||
* @throws \Exception if it was not possible to gather sufficient entropy
|
||||
*/
|
||||
public function generate($length)
|
||||
{
|
||||
|
||||
@@ -25,6 +25,9 @@ interface RandomGeneratorInterface
|
||||
*
|
||||
* @param integer $length The number of bytes of random binary data to generate
|
||||
* @return string A binary string
|
||||
* @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException if `Moontoast\Math\BigNumber` is not present
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \Exception if it was not possible to gather sufficient entropy
|
||||
*/
|
||||
public function generate($length);
|
||||
}
|
||||
|
||||
@@ -30,6 +30,10 @@ interface TimeGeneratorInterface
|
||||
* could arise when the clock is set backwards in time or if the node ID
|
||||
* changes.
|
||||
* @return string A binary string
|
||||
* @throws \Ramsey\Uuid\Exception\UnsatisfiedDependencyException if called on a 32-bit system and
|
||||
* `Moontoast\Math\BigNumber` is not present
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws \Exception if it was not possible to gather sufficient entropy
|
||||
*/
|
||||
public function generate($node = null, $clockSeq = null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user