dever 4 년 전
부모
커밋
b2b43b22b1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Api.php

+ 1 - 1
src/Api.php

@@ -38,7 +38,7 @@ class Api
 			$num = $total;
 		}
 
-		$key = array_rand($template, $num);
+		$key = array_rand($template, 1);
 
 		if (is_array($key)) {
 			$result = array();