Skip to content

Commit

Permalink
Merge pull request burningcl#31 from arenaswan/patch-1
Browse files Browse the repository at this point in the history
Update Hack.java
  • Loading branch information
burningcl authored Jan 5, 2018
2 parents 8fcd4ce + 2f5495b commit af15407
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/com/skyline/wxjumphack/Hack.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
* Created by chenliang on 2018/1/1.
*/
public class Hack {


/**
* 生成随机数,避免固定间隔检测
*/
public static int getRandom(int min,int max){
Random random = new Random();
return random.nextInt(max)%(max-min+1) + min;
}
static final String ADB_PATH = "/Users/chenliang/Library/Android/sdk/platform-tools/adb";

/**
Expand Down Expand Up @@ -85,7 +90,7 @@ public static void main(String... strings) {
break;
}
try {
Thread.sleep(4_000);
Thread.sleep(getRandom(4000,9000));
} catch (InterruptedException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit af15407

Please sign in to comment.