dever 7 năm trước cách đây
mục cha
commit
671950156f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/Base.php

+ 1 - 1
lib/Base.php

@@ -147,6 +147,6 @@ class Base
     {
         $len = isset($this->config['code_length']) ? $this->config['code_length'] : 4;
         $type = isset($this->config['code_type']) ? $this->config['code_type'] : 4;
-        return Dever::rand($len, $type);
+        return Dever::rand($len, $type - 1);
     }
 }