Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replay random state from control in execution #6

Open
maedi opened this issue Jan 15, 2021 · 0 comments
Open

Replay random state from control in execution #6

maedi opened this issue Jan 15, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@maedi
Copy link
Collaborator

maedi commented Jan 15, 2021

Problem

If the control reflection uses a random or time based value, then the actual execution could use a different value. The control and the execution need to be synced up.

Solution

  • Track control values via methods like .sample or ActiveRecord
  • Add an "is_random :method" helper for methods that return a random value
  • Keep track of random values and replay them in execution
@maedi maedi added the bug Something isn't working label Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant