Commit Graph

6 Commits

Author SHA1 Message Date
Naomi Seyfer
c99c816331 Fixing up docs, making ObjectID consistent with Node api 2013-01-17 15:51:56 -05:00
meawoppl@gmail.com
3f0a5a3489 Fixed flaw in uuid generation where dynamic casting from hex string to integer
give the improper result for characters a-f.

See below for related snippet, spaced to make reading easy
X marks the spot!:
>  s
["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]

>  _.map(s, function(input) { return ((input & 0x3)| 0x8)})
[ 8,   9,   10,  11,  8,   9,   10,  11,  8,   9,   8,   8,   8,   8,   8,   8]
                                                    X,   X,        X,   X,   X
_.map(s, function(input) { return ((parseInt(input,16) & 0x3)| 0x8)})
> [8,  9,   10,  11,  8,   9,   10,  11,  8,   9,   10,  11,  8,   9,   10, 11]
2012-12-02 12:43:50 -08:00
David Greenspan
8bd77fab4b add missing semicolon 2012-09-15 18:32:06 -07:00
Nick Martin
27a15af421 Semicolon fixes. 2012-03-28 18:26:15 -07:00
Geoff Schmidt
58a2d65126 Provide package 'meteor' to create the Meteor global
Fold old package 'core' into it
2012-02-23 02:21:10 -08:00
Nick Martin
bd02b31a55 move uuid to it's own package, so stream can depend on it. 2012-02-06 23:15:31 -08:00