Class RandomUtils


  • public class RandomUtils
    extends Object
    • Constructor Detail

      • RandomUtils

        public RandomUtils()
    • Method Detail

      • getSystemRandom

        public static Random getSystemRandom()
        Get current system random
        Returns:
        Get random instance
      • getRandomString

        @Contract("_ -> new")
        @NotNull
        public static @NotNull String getRandomString​(int total)
        Generate random string
        Parameters:
        total - Total bytes of data
        Returns:
        Returns a random string
      • getRandomString

        @NotNull
        public static @NotNull String getRandomString()
        Generate random string
        Returns:
        Returns a random string