Skip to content

Commit

Permalink
Update examples/Cpp/ReflexGame/src/ReflexGame.lf
Browse files Browse the repository at this point in the history
Co-authored-by: Edward A. Lee <[email protected]>
  • Loading branch information
lhstrh and edwardalee authored Nov 1, 2023
1 parent 2de9eab commit f09009c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Cpp/ReflexGame/src/ReflexGame.lf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ reactor RandomDelay(min_delay: time(2 sec), max_delay: time(8 sec)) {
output out: void
logical action delay(min_delay): void

// a random number generator seeded with the current physiceal time
// a random number generator seeded with the current physical time
state rand: std::mt19937({= get_physical_time().time_since_epoch().count() =})
// a uniform random distribution with a range from 1 to (max_delay - min_delay) milliseconds
state dist: std::uniform_int_distribution<int>(
Expand Down

0 comments on commit f09009c

Please sign in to comment.