]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/LdapCommon/LdapCommon.php
Merged
[quix0rs-gnu-social.git] / plugins / LdapCommon / LdapCommon.php
index b74225648f4ad63b48839899c378661eca21b9db..aea1b72ea4f409f4a641b3542721ed20102adcb2 100644 (file)
@@ -95,6 +95,7 @@ class LdapCommon
             return false;
         }
 
+        return true;
     }
 
     function get_ldap_config(){
@@ -369,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;
     }