public class RandomGUID extends Object
RandomGUID generates truly random GUIDs by combining the system's IP address (name/IP), system time in milliseconds, and a very large random number joined together in a single String that is then passed through an MD5 hash.
It's not possible to access the seed information (IP, time, random number) from the resulting GUIDs as the MD5 hash algorithm provides one way encryption.
|Constructor and Description|
With no specification of security option, this constructor defaults to lower security, high performance.
Setting secure true enables each random number generated to be cryptographically strong.
|Modifier and Type||Method and Description|
Convert to the standard format for GUID (Useful for SQL Server UniqueIdentifiers, etc.)
public RandomGUID(boolean secure)
Secure false defaults to the standard Random function seeded with a single cryptographically strong random number.
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.