This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc implementation of rand() function
- From: "Anton Litvinenko" <antony at solo dot delfi dot ee>
- To: <gcc at gcc dot gnu dot org>
- Date: Sat, 10 May 2003 20:17:50 +0300
- Subject: gcc implementation of rand() function
- Reply-to: <antony at solo dot delfi dot ee>
Hello!
I am trying to study implementation of rand() function in C language.
I tried to search the source code of gcc, but didnt find it. Could You be so nice and help me?
As i far as i know, a usual implementation uses Linerar Congruential Generator. What i am really intrested what constants does gcc implementation use?
Thankfully,
Anton Litvinenko
- Jumalamuidu Mallorcale puhkama?! Kliki kohe! http://1699.delfi.ee/?id=15
- Kui tahad sõita KIA Carnivaliga või võita 5000 krooni, siis kliki siia!
http://auto24.delfi.ee/kampaania/reg.php