private function resetRandomGeneratorByContact()
    {
        if ($this->contact) {
            $string = trim(
                strtolower(
                    implode(
                        '|',
                        [
                            $this->contact->getEmail(),
                            $this->contact->getPhone(),
                            $this->contact->getMobile(),
                        ]
                    )
                )
            );
            if (strlen($string) > 3) {
                $binHash = md5($string, true);
                $numHash = unpack('N2', $binHash);
                $hash    = $numHash[1].$numHash[2];
                $hashInt = (int) substr($hash, 0, 10);
                mt_srand($hashInt);
            }
        }
    }
private function resetRandomGeneratorByContact()
    {
        if ($this->contact) {
            $string = trim(
                strtolower(
                    implode(
                        '|',
                        [
                            $this->contact->getEmail(),
                            $this->contact->getPhone(),
                            $this->contact->getMobile(),
                        ]
                    )
                )
            );
            if (strlen($string) > 3) {
                $binHash = md5($string, true);
                $numHash = unpack('N2', $binHash);
                $hash    = $numHash[1].$numHash[2];
                $hashInt = (int) substr($hash, 0, 10);
                mt_srand($hashInt);
            }
        }
    }
private function resetRandomGeneratorByContact ( ) { if ( $ this -> contact ) { $ string = trim ( strtolower ( implode ( '|' , [ $ this -> contact -> getEmail ( ) , $ this -> contact -> getPhone ( ) , $ this -> contact -> getMobile ( ) , ] ) ) ) ; if ( strlen ( $ string ) > 3 ) { $ binHash = md5 ( $ string , true ) ; $ numHash = unpack ( 'N2' , $ binHash ) ; $ hash = $ numHash [ 1 ] . $ numHash [ 2 ] ; $ hashInt = ( int ) substr ( $ hash , 0 , 10 ) ; mt_srand ( $ hashInt ) ; } } }
Reset random generator based on the current contact.

This is to help avoid gaming the Source API scrub rate by re-posting the same lead.

@return bool|string
Reset random generator based on the current contact .