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,536 of 243,242   
   Janis Papanagnou to Michael Sanders   
   Re: srand(0)   
   23 Dec 25 09:59:27   
   
   From: janis_papanagnou+ng@hotmail.com   
      
   On 2025-12-23 08:24, Michael Sanders wrote:   
   > On Mon, 22 Dec 2025 13:18:19 +0100, Janis Papanagnou wrote:   
   >   
   >> There's number sequence generators that produce 0 sequences if seeded   
   >> with 0. And maybe the comment in 'man 3 rand', "If no seed value is   
   >> provided, the rand() function is automatically seeded with a value   
   >> of 1.", may have fostered his doubt.   
   >   
   > Janis - naive question for you...   
   >   
   > How do I bring up *posix only* man pages using 3?   
      
   Sorry, can't help you here. Maybe someone else can.   
      
   Myself I only access the Unix man pages as they come,   
   i.e. using either 'man entry' or 'man section entry'.   
   The POSIX information is usually textually integrated   
   in the man pages.   
      
   >   
   > I see no difference when invoking any of:   
   >   
   > man 3 srand   
      
   That's what I'm doing, and I see, for example,   
      
   ...   
   HISTORY   
           rand()   
           srand()   
                  SVr4, 4.3BSD, C89, POSIX.1-2001.   
      
           rand_r()   
                  POSIX.1-2001.  Obsolete in POSIX.1-2008.   
   ...   
      
   Janis   
      
   > or: man 3 posix srand   
   > or: man posix 3 srand   
   >   
   > What I'm doing wrong here?   
   >   
      
   --- 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