Created
April 24, 2021 19:14
-
-
Save sandipchitale/dea23380e67cee52183bd4bb0690963f to your computer and use it in GitHub Desktop.
UUIDGen #UUID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.zuuldemo; | |
import java.util.UUID; | |
import java.util.stream.IntStream; | |
public class UUIDGen { | |
public static void main(String[] args) { | |
IntStream.range(1, 100) | |
.forEach((i) -> { | |
System.out.println(UUID.nameUUIDFromBytes(String.valueOf(System.currentTimeMillis()).getBytes()).toString().replace("-", "") + " millis: " + System.currentTimeMillis()); | |
} | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment