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

RAND_MAX replaced #5

Open
GoogleCodeExporter opened this issue Aug 6, 2015 · 0 comments
Open

RAND_MAX replaced #5

GoogleCodeExporter opened this issue Aug 6, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Use RAND_MAX on a code
2. Run c2cu 
3. RAND_MAX is replaced with the RAND_MAX on the compiler machine
4. Move the code to another machine
5. Run the code

What is the expected output? What do you see instead?
The results will be different, because of different values of RAND_MAX in 
different architectures.

Possible solution:

a) Preserve #define and #include instead of using a preprocessor.
b) Write our own preprocessor
c) Use const (C99?)


Original issue reported on code.google.com by namiurtf on 22 Apr 2010 at 9:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant