[Bug c/34096] New: Random number generates the same set of numbers

2007-11-14 Thread rsanghavi at gmail dot com
random numbers are generated. I have a fix for this problem which I have been using for a while. If this is a valid bug, I can give a patch for this. Rahul rsanghavi At gmail Dot com -- Summary: Random number generates the same set of numbers Product: gcc Version

[Bug c/34096] Random number generates the same set of numbers

2007-11-14 Thread rsanghavi at gmail dot com
--- Comment #2 from rsanghavi at gmail dot com 2007-11-14 22:32 --- Andrew, Thanks for answering my question. But, even if you seed it, the result is the same unless you seed it with a random number. I use (time(0) + random number) as seed in my code. I am unaware and so asking you