
Node.js module that generates a base64 id. It uses crypto.randomBytes when available, but falls back to unsafe methods for node.js <= 0.4.
To increase performance, random bytes are buffered to minimize the number of synchronous calls to crypto.randomBytes.