Skip to content

Bug fix fill_random() method#295

Merged
evaleev merged 2 commits into
masterfrom
bimalgaudel-patch-1
Jul 12, 2021
Merged

Bug fix fill_random() method#295
evaleev merged 2 commits into
masterfrom
bimalgaudel-patch-1

Conversation

@bimalgaudel
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member Author

@bimalgaudel bimalgaudel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think , return static_cast<ValueType>(static_cast<double>(std::rand()) / RAND_MAX);
is better than the current line ie. return static_cast<ValueType>(std::rand()) / RAND_MAX;

@evaleev evaleev merged commit ac4edbb into master Jul 12, 2021
@evaleev evaleev deleted the bimalgaudel-patch-1 branch July 12, 2021 00:19
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