home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,527 of 243,242   
   Janis Papanagnou to Michael S   
   Re: srand(0)   
   22 Dec 25 22:19:56   
   
   From: janis_papanagnou+ng@hotmail.com   
      
   On 2025-12-22 19:45, Michael S wrote:   
   > [...]   
   > In practice, using LFSR for rand() is not particularly bright idea for   
   > different reason: LFSR is a reasonably good PRNG for a single bit, but   
   > not when you want to generate a group of 31 pseudo-random bits. [...]   
      
   Please note that I've not suggested that.   
      
   I had been merely answering your question concerning Michael's doubts...   
      
    >> Is it incorrect to use 0 (zero) to seed srand()?   
    > No, why whould you think so?   
   There's number sequence generators that produce 0 sequences if seeded   
   with 0.   
      
   Janis   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca