Bay 12 Games Forum

Other Projects => Curses => Topic started by: Kosmonaut on May 07, 2011, 02:52:15 pm

Title: Where is LCSrandom()?
Post by: Kosmonaut on May 07, 2011, 02:52:15 pm
I've been looking at the source code and I see a lot of references to an LCSrandom() function. I also saw it prototyped in one of the headers as long LCSrandom(unsigned long max). However, I can't seem to find the function itself anywhere. Is there a coder here who can point me in the right direction?
Title: Re: Where is LCSrandom()?
Post by: Jonathan S. Fox on May 07, 2011, 04:30:08 pm
I've been looking at the source code and I see a lot of references to an LCSrandom() function. I also saw it prototyped in one of the headers as long LCSrandom(unsigned long max). However, I can't seem to find the function itself anywhere. Is there a coder here who can point me in the right direction?

Line 433 of trunk/src/game.cpp.
Title: Re: Where is LCSrandom()?
Post by: Kosmonaut on May 08, 2011, 02:07:49 am
Aha, I see it now. Thanks!