const var = require( 'crypto' );
var.randomBytes(16).toString( 'base64' );
// '6JDFIvPbrWANKpSJ8vlv6b=='
String nonce = new String(DigestUtils.md5Hex(String.valueOf(new SecureRandom().nextLong())));
def GetCspNonce():
"""ランダムなnonce値を出力します。"""
NONCE_LENGTH = 16
return base64.b64encode(os.urandom(NONCE_LENGTH))