diff options
Diffstat (limited to 'src/modules/random')
| -rw-r--r-- | src/modules/random/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/random/index.ts b/src/modules/random/index.ts index 8a788d9f..b4034343 100644 --- a/src/modules/random/index.ts +++ b/src/modules/random/index.ts @@ -97,10 +97,10 @@ function arrayRemove<T>(arr: T[], values: readonly T[]): T[] { /** * Generates random values of different kinds. */ -export class Random { +export class RandomModule { constructor(private readonly faker: Faker) { // Bind `this` so namespaced is working correctly - for (const name of Object.getOwnPropertyNames(Random.prototype)) { + for (const name of Object.getOwnPropertyNames(RandomModule.prototype)) { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } |
