<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Random Password Generator Shell Script - PHP Class + SHA1 based'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 19:15:47 GMT</pubDate>
<item>
<title>AzizLight said on 10/28/09</title>
<link>http://snipplr.com/view/21909/random-password-generator-shell-script--php-class--sha1-based/</link>
<description><![CDATA[ I updated the snippet, now you shouldn't have a problem. ]]></description>
<pubDate>Wed, 28 Oct 2009 07:11:23 GMT</pubDate>
<guid>http://snipplr.com/view/21909/random-password-generator-shell-script--php-class--sha1-based/</guid>
</item>
<item>
<title>AzizLight said on 10/28/09</title>
<link>http://snipplr.com/view/21909/random-password-generator-shell-script--php-class--sha1-based/</link>
<description><![CDATA[ benoit: The code I posted works perfectly for me. Do not, I repeat do not replace 
    $password .= $seed{rand(0,$seed_length-1)};
by
    $password = $seed{rand(0,$seed_length-1)};
or else the paswords generated will only be one character long. What you could do is add the following code on line 31:
    $password = '';
That should solve your problem. ]]></description>
<pubDate>Wed, 28 Oct 2009 07:08:59 GMT</pubDate>
<guid>http://snipplr.com/view/21909/random-password-generator-shell-script--php-class--sha1-based/</guid>
</item>
<item>
<title>benoit said on 10/27/09</title>
<link>http://snipplr.com/view/21909/random-password-generator-shell-script--php-class--sha1-based/</link>
<description><![CDATA[ By this : $password = $seed{rand(0,$seed_length-1)}; ]]></description>
<pubDate>Tue, 27 Oct 2009 09:19:35 GMT</pubDate>
<guid>http://snipplr.com/view/21909/random-password-generator-shell-script--php-class--sha1-based/</guid>
</item>
<item>
<title>benoit said on 10/27/09</title>
<link>http://snipplr.com/view/21909/random-password-generator-shell-script--php-class--sha1-based/</link>
<description><![CDATA[ Line 149 replace this : 
	$password .= $seed{rand(0,$seed_length-1)};

By this : 
	$password .= $seed{rand(0,$seed_length-1)};

Otherwise it throws an undefined $password var ]]></description>
<pubDate>Tue, 27 Oct 2009 09:09:12 GMT</pubDate>
<guid>http://snipplr.com/view/21909/random-password-generator-shell-script--php-class--sha1-based/</guid>
</item>
</channel>
</rss>