ソースを参照

Merge pull request #38 from QTSdev/master

Fix non working code in RandomLib::random() method.
Mark 12 年 前
コミット
04cc272c24
1 ファイル変更1 行追加2 行削除
  1. 1 2
      Lib/RandomLib.php

+ 1 - 2
Lib/RandomLib.php

@@ -298,12 +298,11 @@ class RandomLib {
 				break;
 				break;
 			default:
 			default:
 				$pool = (string)$type;
 				$pool = (string)$type;
-				//$utf8 = ! UTF8::is_ascii($pool);
 				break;
 				break;
 		}
 		}
 
 
 		// Split the pool into an array of characters
 		// 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
 		// Largest pool key
 		$max = count($pool) - 1;
 		$max = count($pool) - 1;