Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ public String getNextStringId(String strategyId) throws FdlException {
*/
public void setAddress(String address) throws FdlException, NoSuchAlgorithmException {
byte[] addressBytes = new byte[6];
Random random = new Random();
random = SecureRandom.getInstanceStrong();
Random random = SecureRandom.getInstanceStrong();
random.setSeed(System.currentTimeMillis());
if (null == address) {
LOGGER.debug("IDGeneration Service : Using a random number as the base for id's."
Expand Down Expand Up @@ -275,7 +274,6 @@ public static final UUID generateIdFromTimestamp(long currentTimeMillis, long ho
}
}

time = currentTimeMillis;
// low Time
time = currentTimeMillis << 32;
// mid Time
Expand Down