MUD-Dev
mailing list archive

[ Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

Re: [MUD-Dev] Rooms, 3D arrays, etc.



[Jon L:]
:Chris or anyone:
:
:Does multi-threading have any affects on seeds used in the random
:generator.  Does anyone know if this is truly thread safe?

The key is to save the seed[s] you use as the base for your region[s].
What was also discussed was using the co-ordinates within the region for
the local seed. Thus, nothing is really random, and can be repeatedly
generated, whether multi-threaded or not.

--
Chris Gray   cg#ami-cg,GraySage.Edmonton.AB.CA



[ Other Periods  | Other mailing lists  | Search  ]