Skip to content

Commit

Permalink
chore: mark mersenne as deprecated (internal) (#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Oct 11, 2022
1 parent f921c14 commit 7a3136c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/faker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ export class Faker {
readonly fake: FakeModule['fake'] = new FakeModule(this).fake;
readonly unique: UniqueModule['unique'] = new UniqueModule(this).unique;

/**
* @deprecated Internal. Use faker.datatype.number() or faker.seed() instead.
*/
readonly mersenne: MersenneModule = new MersenneModule();
readonly random: RandomModule = new RandomModule(this);

Expand Down
2 changes: 2 additions & 0 deletions src/modules/mersenne/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import Gen from './twister';

/**
* Module to generate seed based random numbers.
*
* @deprecated Internal. Use faker.datatype.number() or faker.seed() instead.
*/
export class MersenneModule {
private gen = new Gen();
Expand Down

0 comments on commit 7a3136c

Please sign in to comment.