Javascript – bitwise manipulate in JS to generate unique IDs combining bytes from Date.now() and random bytes?
I want to create an 8 bytes ID so that the higher 5 bytes will be the first 5 bytes of Date.now() and the lower 3 bytes will be random bytes.