I need to generate a safe customer facing identifier. I have a method for pseudo-randomly generating a value for a new record. I need to make sure that no two requests end up with the same value by happenstance. Coming from the Java world I'm used to using synchronize on a method, but I'm finding that doesn't work. Has it been removed? How can I ensure that I end up with unique keys?