Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.security.SecureRandom;

public class Main {
    public static synchronized String getNonce() {
        SecureRandom sr = new SecureRandom();
        return Long.toString(Math.abs(sr.nextLong()), Character.MAX_RADIX);
    }
}