randomness

Steve Summit scs at athena.mit.edu
Thu Apr 12 09:25:47 AEST 1990


In article <1990Apr11.001355.25937 at athena.mit.edu> my evil twin Skippy wrote:
>Make that
>	srand((int)time((time_t)NULL));

This should, of course, be

	srand((int)time((time_t *)NULL));

Forty lashes with a wet noodle for me for posting a code fragment
I didn't compile and lint.

Thanks to Mark Brader for pointing this out so kindly, and to the
rest of you for not ridiculing me (yet...)



More information about the Comp.lang.c mailing list