Amend IDgenerator to AtomicInteger

Amend IDgenerator to AtomicInteger ensures uniqueness during potential
concurrency