MCPcopy Index your code
hub / github.com/socketio/socket.io / yeast

Function yeast

client-dist/socket.io.js:1041–1045  ·  view source on GitHub ↗

* Yeast: A tiny growing id generator. * * @returns {String} A unique id. * @api public

()

Source from the content-addressed store, hash-verified

1039 * @api public
1040 */
1041 function yeast() {
1042 var now = encode(+new Date());
1043 if (now !== prev) return seed = 0, prev = now;
1044 return now + '.' + encode(seed++);
1045 }
1046 //
1047 // Map each character to its index.
1048 //

Callers 1

socket.io.jsFile · 0.85

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected