diff options
Diffstat (limited to 'src/modules/random')
| -rw-r--r-- | src/modules/random/index.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/random/index.ts b/src/modules/random/index.ts index 1f4b499b..88f81c63 100644 --- a/src/modules/random/index.ts +++ b/src/modules/random/index.ts @@ -18,6 +18,7 @@ export class RandomModule { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } + this[name] = this[name].bind(this); } } @@ -206,6 +207,7 @@ export class RandomModule { if (typeof options === 'number') { return this.faker.string.alpha(options); } + return this.faker.string.alpha({ length: options.count, casing: options.casing, |
