Skip to content
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

Mh randutils #234

Draft
wants to merge 2 commits into
base: devel
Choose a base branch
from
Draft

Mh randutils #234

wants to merge 2 commits into from

Conversation

martinhoracek
Copy link
Collaborator

API for random number generation. It uses new C++ library random functions.

@sonarcloud
Copy link

sonarcloud bot commented Feb 10, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@cossorzano
Copy link
Contributor

It is rather strange to have a main function in the library. Is there any reason for this? It can create a name conflict

@DStrelak
Copy link
Collaborator

Yes, that will be changed. Currently we're discussing how to best preserve the usage examples.

* Example program using new RandUtils
*/

int main() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Having a main in a library can cause a lot of troubles

@cossorzano
Copy link
Contributor

A possibility that we have used is to add a big comment to the class including the usage. See for instance

/** Filter class for Fourier space.

@albertmena albertmena marked this pull request as draft May 13, 2022 12:35
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