Use language-agnotic Locale.ROOT
This commit is contained in:
parent
8adc6c3277
commit
846a25561c
|
@ -65,7 +65,7 @@ class BasicIdGenerator {
|
|||
final int rndnum = this.rnd.nextInt();
|
||||
buffer.append(System.currentTimeMillis());
|
||||
buffer.append('.');
|
||||
final Formatter formatter = new Formatter(buffer, Locale.US);
|
||||
final Formatter formatter = new Formatter(buffer, Locale.ROOT);
|
||||
formatter.format("%1$016x-%2$08x", Long.valueOf(this.count), Integer.valueOf(rndnum));
|
||||
formatter.close();
|
||||
buffer.append('.');
|
||||
|
|
Loading…
Reference in New Issue