Skip to content

Commit

Permalink
Update MathUtils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob authored Mar 9, 2022
1 parent 03fe7d3 commit 8a97f90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/math/MathUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ function generateUUID() {
_lut[ d2 & 0x3f | 0x80 ] + _lut[ d2 >> 8 & 0xff ] + '-' + _lut[ d2 >> 16 & 0xff ] + _lut[ d2 >> 24 & 0xff ] +
_lut[ d3 & 0xff ] + _lut[ d3 >> 8 & 0xff ] + _lut[ d3 >> 16 & 0xff ] + _lut[ d3 >> 24 & 0xff ];

return uuid;
// .toLowerCase() here flattens concatenated strings to save heap memory space.
return uuid.toLowerCase();

}

Expand Down

0 comments on commit 8a97f90

Please sign in to comment.