What is a good random seed?

What is a good random seed?

Post by Joseph Surio » Thu, 14 Jan 1999 04:00:00



Is there a way to have a more random way to seed RANDOM?

Now I do RANDOM=(multiply part of the CPU number * part of time * Process
Id) % 32767

A better way would be to make a number by testing CPU usage and generate a 1
when it increases and a 0 when it doesn't.  But this is prettty involved for
the ksh and it only works for busy systems.

This has to run only once on different systems.

 
 
 

What is a good random seed?

Post by Hunter Johns » Thu, 14 Jan 1999 04:00:00




> Is there a way to have a more random way to seed RANDOM?

Programming perl recommends checksumming the compressed output of a
rapidly changing o/s status program (or several), such as ps axww.
The example then ors this with the current time and the pid.

Hunter
--
J. Hunter Johnson        | "A little consistent wholesome modeling and

(937) 865-6800 x5385     |    true words harshly spoken."
Lexis-Nexis, Dayton, OH  |                               -- Ron Sider

 
 
 

What is a good random seed?

Post by Matt Steinhof » Fri, 15 Jan 1999 04:00:00



> What is a good random seed?

    11

    Matt

 
 
 

1. Seeds for random nos.

I want to generate independant streams of random nos having
a uniform distribution, using the provided functions. For
the same I need seeds. These can be for eg, nos produced in
the sequence, which ar quite apart from each other, say 5000.
If anyone has done or read something connected with this, do
send me the referances, preferably by email.
Thanx in advance.

--
--------------------------------------------------------

Room # 149,        |  "A man who smiles in the face of                                    
Hostel # 5,        |   trouble has found someone to blame    
IIT Bombay.        |   it on!"
--------------------------------------------------------

2. Serial Port Communications via C Program

3. Finding the random seed

4. 104841-03 bad patch

5. different seed for random number generator?

6. finger

7. what's the accepted method to get a random seed?

8. lp replacement

9. SUMMARY: get the time of the day to seed my random generator

10. Random number seed

11. A: Good seed for drand

12. good seed value for srand()

13. Q:Good seed for drand?