TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Bilow
from: Sean Price
date: 1996-05-17 09:57:30
subject: Random Seed

Hello Mike!

Replying to a message of Mike Bilow to Sean Price:

 MB> The ELF Hash takes as an argument a pointer to a NUL-terminated array
 MB> of bytes.  It would be trivial to modify the function to always
 MB> process the four bytes returned as the system time from the C time()
 MB> function.  The hash produces a 32-bit result which can be collapsed
 MB> by any prime modulus if needed.

        Great.  This is exactly what I was looking for.  Thanks for the help.

Sean Price
Rude Dog Software
sprice{at}ridgecrest.ca.us
http://www1.ridgecrest.ca.us/~sprice/rudedog.html

--- FleetStreet 1.10 NR
* Origin: Sanctuary from The Law BBS - (619)377-3611 - Inyokern, CA (1:205/46)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1
@PATH: 205/46 500 1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.