package cloud.swiftnode.kspam.util;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Random;

/**
 * Created by Junhyeong Lim on 2017-01-18.
 */
public class StaticUtil {
    private static Random random = new Random();

    public static InetAddress getRandomAddr() throws UnknownHostException {
        byte[] addrs = new byte[4];
        random.nextBytes(addrs);
        return InetAddress.getByAddress(addrs);
    }

    public static String getRandomName() {
        int max = 12;
        char[] seed = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ".toCharArray();
        char[] nameChars = new char[max];
        for (int i = 0; i < max; i++) {
            nameChars[i] = seed[random.nextInt(seed.length)];
        }
        return new String(nameChars);
    }

    public static Random getRandom() {
        return random;
    }
}

@@ -370,22 +370,27 @@
         
-r
+getR
 andom
+()
 .nextByt
@@ -726,22 +726,27 @@
  = seed%5B
-r
+getR
 andom
+()
 .nextInt

Fix some code 변수가 아닌 메서드 사용