Commit 7bc5cfc
committed
Fix
Before this commit it used `random.nextBytes` which made it generate an `int`
and crop it to `byte`, since it is quasi random, it produces bad
distribution and lead to have more UUID collisions.Uuids.random to get better distribution1 parent fcec90c commit 7bc5cfc
File tree
1 file changed
+7
-1
lines changed- core/src/main/java/com/datastax/oss/driver/api/core/uuid
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
305 | 311 | | |
306 | 312 | | |
307 | 313 | | |
| |||
0 commit comments