note 97978 deleted from function.mt-rand by visualmind
| From: | visualmind@php.net | Date: | Wed, 19 May 2010 09:22:34 +0000 |
| Subject: | note 97978 deleted from function.mt-rand by visualmind | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169399@lists.php.net to get a copy of this message | ||
Note Submitter: nilesh at itech7 dot com
----
Oops, there is a typo in the RandomString generator I wrote.
<?php
public function __construct($length = 15) {
$this->_length = 10;
}
?>
needs to be changed to
<?php
public function __construct($length = 15) {
$this->_length = $length;
}
?>
Heh, what an awesome typo. I was thinking stringlength = 10 at that time.