PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
2 sec ago
Untitled
8 sec ago
Eden Bradley Mini Collection
8 sec ago
Untitled
8 sec ago
Untitled
15 sec ago
Untitled
14 sec ago
Untitled
C# | 15 sec ago
Untitled
16 sec ago
Untitled
By: a guest on
Jun 21st, 2012
| syntax:
None
| size: 0.25 KB | hits: 11 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
Is unique id generation using UUID really unique?
AtomicLong counter = new AtomicLong(System.currentTimeMillis()*1000);
long id = counter.incrementAndGet();
// something like ctz9yamgu8
String id = Long.toString(counter.incrementAndGet(), 36);
create a
new version
of this paste
RAW Paste Data
Is unique id generation using UUID really unique? AtomicLong counter = new AtomicLong(System.currentTimeMillis()*1000); long id = counter.incrementAndGet(); // something like ctz9yamgu8 String id = Long.toString(counter.incrementAndGet(), 36);