Skip to content

Commit

Permalink
docs: faker.seed examples are not consistent after refresh faker-js#3345
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Jan 20, 2025
1 parent 192b540 commit dc467c0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/simple-faker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ export class SimpleFaker {
* // Consistent values for tests:
* faker.seed(42)
* faker.number.int(10); // 4
* faker.number.int(10); // 8
* faker.number.int(10); // 10
*
* faker.seed(42)
* faker.number.int(10); // 4
* faker.number.int(10); // 8
* faker.number.int(10); // 10
*
* // Random but reproducible tests:
* // Simply log the seed, and if you need to reproduce it, insert the seed here
Expand Down Expand Up @@ -244,20 +244,20 @@ export class SimpleFaker {
* // Consistent values for tests (using a number):
* faker.seed(42)
* faker.number.int(10); // 4
* faker.number.int(10); // 8
* faker.number.int(10); // 10
*
* faker.seed(42)
* faker.number.int(10); // 4
* faker.number.int(10); // 8
* faker.number.int(10); // 10
*
* // Consistent values for tests (using an array):
* faker.seed([42, 13, 17])
* faker.number.int(10); // 4
* faker.number.int(10); // 8
* faker.number.int(10); // 3
* faker.number.int(10); // 10
*
* faker.seed([42, 13, 17])
* faker.number.int(10); // 4
* faker.number.int(10); // 8
* faker.number.int(10); // 3
* faker.number.int(10); // 10
*
* // Random but reproducible tests:
* // Simply log the seed, and if you need to reproduce it, insert the seed here
Expand Down

0 comments on commit dc467c0

Please sign in to comment.