Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 2f93f99

Browse files
authored
Add files via upload
1 parent 7f34a50 commit 2f93f99

File tree

3 files changed

+500
-494
lines changed

3 files changed

+500
-494
lines changed

Diff for: compilestandard.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.io.*;
22
import java.security.MessageDigest;
33
import java.security.*;
4-
public class compilestandard extends usacotools {
4+
public class compilestandard extends javatools {
55
public static String sha256(String input) throws NoSuchAlgorithmException {
66
MessageDigest mDigest = MessageDigest.getInstance("SHA-256");
77
byte[] result = mDigest.digest(input.getBytes());

Diff for: javatools.java

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public abstract class javatools {
3939
public static void blockio() {
4040
IO=false;
4141
}
42+
public static Random getrandom() {
43+
return new Random();
44+
}
4245
public static boolean isrect(int[][] map,int x,int y) {
4346
int cachedsize=-1;
4447
int cachey=-1;

0 commit comments

Comments
 (0)