* Yeast: A tiny growing id generator. * * @returns {String} A unique id. * @api public
()
| 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 | // |