Browse Source

Fix non working code in random() method.

Augusto 12 years ago
parent
commit
a58a4810c1
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Lib/RandomLib.php

+ 1 - 2
Lib/RandomLib.php

@@ -298,12 +298,11 @@ class RandomLib {
 				break;
 			default:
 				$pool = (string)$type;
-				//$utf8 = ! UTF8::is_ascii($pool);
 				break;
 		}
 
 		// Split the pool into an array of characters
-		$pool = ($utf8 === true) ? str_split($pool, 1) : str_split($pool, 1);
+		$pool = str_split($pool, 1);
 
 		// Largest pool key
 		$max = count($pool) - 1;