I'm converting some code from Fortran to C and I've run into a problem with the random number generator convertion. It seems that when doing a bit shift in C it produces a different result than the bitshift in the Fortran. Does anyone have any ideas on how this would happen? Since the generator depends on these shifts I can't convert the code correctly if the shift is not going to work the same way.
Thanks