Applying Java AtomicLong

preview_player
Показать описание
This video shows how the Java AtomicLong class is applied in practice to generate seedsthat are reasonably unique in the Java Random class.
Рекомендации по теме
Комментарии
Автор

could you please elaborate why the `updateAndGet(cur -> cur * 1181783497276652981L)` is not sufficient? it sounds like the same thing as the for loop. thanks

yangfanzheng