Skip to content

Created constant to reuse Random instance#850

Merged
littleaj merged 2 commits into
masterfrom
reuse_random
Mar 14, 2019
Merged

Created constant to reuse Random instance#850
littleaj merged 2 commits into
masterfrom
reuse_random

Conversation

@littleaj

Copy link
Copy Markdown
Contributor

Recreating the random object each time does not guarantee sufficient randomness.

@littleaj littleaj requested a review from dhaval24 March 13, 2019 01:30
reworked method to avoid possible negative number from Math.abs
@littleaj littleaj merged commit 7d61b19 into master Mar 14, 2019
@littleaj littleaj deleted the reuse_random branch March 14, 2019 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants