I have a confusing one here.
My srand function appears to be failing. All my calls to rand() produce the same results as the previous compile. I've made the call to srand and it has worked perfectly... until now... reasons completly unknown.
srand( (unsigned)time( NULL ) );
The thing is, it doesnt matter what i initialize srand with. I could call
srand(10) and the results remain the same as the previous compiles using time() to initialize srand.
The app is DX7 (backwards compatibility is great as i'm using DX8 now). Its using D3D mostly with some old DX7 DDraw surfaces... VC++ 6.0... uhhh, Win98... cant think of anything else that might be relevant.
It has worked just nicely for several months now and then *bang*. today it stopped... Cant remember what i'd been working on...
Anyone ever seen this? What can cause srand() to fail? Are there any other possible reasons for these results? Anything i can try? Anything! Thanks.