Removed CakePHP exception handeling from a ported method
Added a test for random string length
Fixed indentation
Added assetions for custom random string lengths, seperated cakehash tests from custom hash tests for the sake of generating better documentation.