Original Post
Does anyone happen to have a fast algorithm to generate a unique ID in C++? I would prefer something that could squeeze inside a long. The UID's don't have to be globally unique, just unique to the current install of my game. I figured I would want to use the current date in some way to derive a UID, I just wasn't really sure what to do beyond that.