Faster newid generation

Faster perf tests: http://jsperf.com/generate-random-id/2

Related ticket #12