Improve random id to avoid old/new having same value.