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

Randomness in StateMachineRuntime #299

Description

@akashlal

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions