CRClientIdGen

This class is used to generate a clientId which is unique within the current IP domain.

This is achieved by means of a full period, 32 bit linear congruential generator.

The sequence will be repeated when it has generated 1M ids

Contstructor

__construct($config)
Parameters
$config
CRConfig object, required
Configuration parameters and methods

Methods

getNextClientId() → String
Returns a string with a unique clientId consisting of 6 digits