2016-10-06 4 views

答えて

0
import java.security.SecureRandom; 

public static String nonceGenerator(){ 
    SecureRandom secureRandom = new SecureRandom(); 
    StringBuilder stringBuilder = new StringBuilder(); 
    for (int i = 0; i < 15; i++) { 
     stringBuilder.append(secureRandom.nextInt(10)); 
    } 
    String randomNumber = stringBuilder.toString(); 
    return randomNumber; 
} 

詳細については、私のポストをチェックアウト: https://www.pythonorjava.com/single-post/2017/03/07/Secure-Random-Number-Generator-nonce

関連する問題