core: fix genUID to not rely on performance.now()