Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Randomness in StateMachineRuntime #299

Open
akashlal opened this issue Apr 17, 2018 · 0 comments
Open

Randomness in StateMachineRuntime #299

akashlal opened this issue Apr 17, 2018 · 0 comments

Comments

@akashlal
Copy link
Contributor

The procedures GetNondeterministicBooleanChoice and GetNondeterministicIntegerChoice do the following: new Random(DateTime.Now.Millisecond). The use of DateTime.Now.Millisecond results in loss of randomness when the calls are close together in time, and in general only 1000 possible random values can be generated.

StateMachineRuntime should have its own random generator that is used over its entire lifetime. And initialized using the default constructor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant