Files
meteor/packages
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
..
2012-11-15 20:44:56 -08:00
2012-10-15 16:48:23 -07:00
2012-10-12 18:00:29 -07:00
2012-11-15 20:44:56 -08:00
2012-11-15 20:44:56 -08:00
2012-07-11 23:03:26 -07:00
2012-11-15 20:44:56 -08:00