diff options
| author | Marak <[email protected]> | 2018-10-23 20:15:09 -0400 |
|---|---|---|
| committer | Marak <[email protected]> | 2018-10-23 20:15:09 -0400 |
| commit | ed9c560599bf1c32ddc36c2f71307c36b810c7c9 (patch) | |
| tree | 9172a906ffd453a98727ce3b9bdb94b0df54bb47 /lib | |
| parent | ef59eca978b91b25cb26ca958cd5aa9ad15b0a31 (diff) | |
| download | faker-ed9c560599bf1c32ddc36c2f71307c36b810c7c9.tar.xz faker-ed9c560599bf1c32ddc36c2f71307c36b810c7c9.zip | |
[api] [minor] Remove `this` reference #718 #376
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/random.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/random.js b/lib/random.js index 5d6c7e1a..f64dbb55 100644 --- a/lib/random.js +++ b/lib/random.js @@ -140,10 +140,9 @@ function Random (faker, seed) { * @method faker.random.uuid */ this.uuid = function () { - var self = this; var RFC4122_TEMPLATE = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'; var replacePlaceholders = function (placeholder) { - var random = self.number({ min: 0, max: 15 }); + var random = faker.random.number({ min: 0, max: 15 }); var value = placeholder == 'x' ? random : (random &0x3 | 0x8); return value.toString(16); }; |
