]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/LdapCommon/LdapCommon.php
Merged
[quix0rs-gnu-social.git] / plugins / LdapCommon / LdapCommon.php
index ef31313b8fc796d8c8245b87cf40c1d4883b7674..aea1b72ea4f409f4a641b3542721ed20102adcb2 100644 (file)
@@ -95,7 +95,7 @@ class LdapCommon
             return false;
         }
 
-        return parent::onAutoload($cls);
+        return true;
     }
 
     function get_ldap_config(){
@@ -370,7 +370,7 @@ class LdapCommon
         mt_srand((double)microtime() * 1000000);
 
         while( strlen( $str ) < $length )
-            $str .= substr( $possible, ( rand() % strlen( $possible ) ), 1 );
+            $str .= substr( $possible, ( mt_rand() % strlen( $possible ) ), 1 );
 
         return $str;
     }