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,538 of 243,242    |
|    Bonita Montero to All    |
|    Re: srand(0)    |
|    23 Dec 25 11:04:07    |
      From: Bonita.Montero@gmail.com              Am 22.12.2025 um 09:48 schrieb Michael Sanders:       > Is it incorrect to use 0 (zero) to seed srand()?       >       > int seed = (argc >= 2 && strlen(argv[1]) == 9)       > ? atoi(argv[1])       > : (int)(time(NULL) % 900000000 + 100000000);       >       > srand(seed);       >       Use mt19993_64 ! ;-)              --- 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