The first thing you'll need to do is enable the extension
create extension "uuid-ossp";
To test that it's working
For more info on which version of the algorithm you should use refer to the documentation.
Postgres UUID OSSP Documentation
Just finishing up brewing up some fresh ground comments...