Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.util.Random;

public class Main {
    private static Random c = new Random();

    protected static String generateNonce() {
        long l = c.nextLong();
        int i = (int) (System.currentTimeMillis() / 60000L);
        return (new StringBuilder(String.valueOf(l))).append(":").append(i).toString();
    }
}