retry with colision

This commit is contained in:
@hangga 2023-11-18 06:09:14 +07:00
parent 32940c41e4
commit 0c8b5bd210
1 changed files with 7 additions and 0 deletions

View File

@ -56,6 +56,13 @@ public class UUIDPositiveLongGeneratorUnitTest {
}
private boolean isUnique(long value) {
// Implementasikan logika pengecekan keunikan, misalnya, dengan memeriksa dalam database
// Mengembalikan true jika nilai unik, false jika ada tumbukan
return true; // Implementasikan sesuai kebutuhan aplikasi Anda
}
private String convertMillisToTime(long currentTimeMillis) {
long totalMilliseconds = currentTimeMillis % 1000;