Use _resetIdCounter for uniqueId
Use _resetIdCounter for uniqueId

Allows us to avoid global variables and causes an approximately 6x increase in the performance of this method.

walmartlabs/thorax,liorch88/thorax