Skip to content

Do not call srand before each rand #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

igchor
Copy link
Member

@igchor igchor commented Jan 10, 2024

It should only be called once, to initialize the seed.
Otherwise, all values returned by rand() will be the same.

It should only be called once, to initialize the seed.
Otherwise, all values returned by rand() will be the same.
@bratpiorka
Copy link
Contributor

@igchor But do you want this to be checked and merged?

@igchor
Copy link
Member Author

igchor commented Jan 11, 2024

@igchor But do you want this to be checked and merged?

After we fix the issues with tests, yes.

@igchor
Copy link
Member Author

igchor commented Jan 22, 2024

I belive this can be merged now, as #140 is merged

@igchor igchor marked this pull request as ready for review January 22, 2024 18:19
@igchor igchor requested a review from a team as a code owner January 22, 2024 18:19
@bratpiorka bratpiorka requested a review from ldorau January 23, 2024 07:33
@bratpiorka
Copy link
Contributor

@igchor I have approved these changes, but could you change the description of this PR and write why we actually need them?

@lukaszstolarczuk
Copy link
Contributor

@igchor I have approved these changes, but could you change the description of this PR and write why we actually need them?

@bratpiorka, the commit message is alright. I copied its content to the PR description. I believe you can merge it.

@bratpiorka bratpiorka merged commit a87fa0d into oneapi-src:main Jan 23, 2024
@igchor igchor deleted the fix_compliance branch January 23, 2024 15:22
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.

3 participants