Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkilgour committed Nov 13, 2015
1 parent 8ab0b8b commit 796ea60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/chancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ function generateArray (min, max, total) {
// e.g., efe1f2aa-1e99-40f2-83fa-8519acd8c34c
function uuid () {
var template = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
return template.replace(/[xy]/g, function(c) {
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
return template.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0;
var v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
}

0 comments on commit 796ea60

Please sign in to comment.