◆ __construct()
Constructs a CombGenerator
using a random-number generator and a number converter
- Paramètres
-
RandomGeneratorInterface | $generator | Random-number generator for the non-time part. |
NumberConverterInterface | $numberConverter | Instance of number converter. |
◆ generate()
Generates a string of binary data of the specified length
- Paramètres
-
integer | $length | The number of bytes of random binary data to generate |
- Renvoie
- string A binary string
- Exceptions
-
UnsatisfiedDependencyException | if Moontoast\Math\BigNumber is not present |
InvalidArgumentException | if length is not a positive integer |
Exception | |
Implémente RandomGeneratorInterface.
Références $hash, et $this.
◆ timestamp()
Returns current timestamp as integer, precise to 0.00001 seconds
- Renvoie
- string
◆ $converter
◆ $randomGenerator
◆ TIMESTAMP_BYTES
const TIMESTAMP_BYTES = 6 |
La documentation de cette classe a été générée à partir du fichier suivant :