Zend random salt generation for element_hash

Ukvihxdkv

New Member
I'm using the following hash with a salt that says \[code\]'unique'\[/code\]. I'm not sure if \[code\]'unique'\[/code\] is a literal string or an internal zend keyword for Zend to actually generate a unique salt? If it's just a random string I think it's better to change that, so does zend have a random string generation function that could be used to salt this sort of hash element? \[code\]$hash = new Zend_Form_Element_Hash('hash', 'no_csrf_foo', array('salt' => 'unique'));\[/code\]
 
Back
Top