ExampleDataGenerator random provider doesn't use seed

Open
#30 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
tooling

Research direction

Start by locating ExampleDataGenerator and its assignValue method, then inspect how the private Random instance is initialized and whether seed handling is covered by existing tests. Confirm the intended seeded behavior with the project context; done means the random provider's seed behavior is explicitly resolved and verified.

Written by the indexing model from the issue text.

Description

Hello,
I was browsing through the code after creating a custom data type for my project and I noticed that the assignValue method in ExampleDataGenerator uses the attribute private Random random = new Random(); to provide randomness instead of a new Random(seed).
Is that a deliberate choice ?

Dominant language
TypeScript
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vaadin/example-data

All issues in vaadin/example-data

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.