Need two spaces between function/method definitions. I also suggest renaming min and max to minimum/maximum to avoid confusion with existing min/max functions. Add a docstring telling us what the function does (is this to generate GUIDs?).