Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2161 from Shopify/chore/no-extra-seed
Browse files Browse the repository at this point in the history
[graphql-fixtures] Remove unused call to faker.seed()
  • Loading branch information
notjosh authored Feb 14, 2022
2 parents 4ed0b20 + 948bf62 commit d90818d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion packages/graphql-fixtures/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Removes call to `faker.seed()` that uses `Math.random()` as a seed value [[#2161]](https://github.com/Shopify/quilt/pull/2161)

## 1.4.1 - 2022-02-09

Expand Down
4 changes: 1 addition & 3 deletions packages/graphql-fixtures/src/fill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,7 @@ function withRandom<T>(keypath: FieldDetails[], func: () => T, seedOffset = 0) {
),
) + seedOffset,
);
const value = func();
faker.seed(Math.random() * 10000);
return value;
return func();
}

function createValue<T>(
Expand Down

0 comments on commit d90818d

Please sign in to comment.