Lines Matching defs:seed
22 protected $seed;
39 $this->seed = random_int(0, mt_getrandmax()) . time();
45 * If a seed is given, the image will be based on that seed
47 * @param string $seed initialize the genrator with this string
50 public function createImage($seed = '', $file = '')
52 if (!$seed) {
53 $seed = random_int(0, mt_getrandmax()) . time();
55 $this->seed = $seed;
96 * Generate number from seed
98 * Each call runs MD5 on the seed again
106 $this->seed = md5($this->seed);
107 $rand = hexdec(substr($this->seed, 0, 8));