Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Internal random number generator  (Read 615 times)

Ari Rahikkala

  • Bay Watcher
    • View Profile
Internal random number generator
« on: December 23, 2007, 07:07:00 pm »

I see you've been doing some work to improve seed compatibility between different users on the same version... however, as long as Dwarf Fortress uses the system RNG, seeds will be dependent on operating systems. Please consider adding a random number generator to Dwarf Fortress instead in order to get consistent results across systems. I'm not an expert on RNGs, but this one is C++, BSD-licensed, and seems quite useful.
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Internal random number generator
« Reply #1 on: December 23, 2007, 07:22:00 pm »

I've been using a Mersenne Twister for quite some time.  I'm not sure what you were referring to.  The messing around I've been doing with seeds wasn't about OS differences, and I haven't seen any clear information on OS differences with the RNG in Dwarf Fortress.
Logged
The Toad, a Natural Resource:  Preserve yours today!

penguinofhonor

  • Bay Watcher
  • Minister of Love
    • View Profile
Re: Internal random number generator
« Reply #2 on: December 23, 2007, 07:36:00 pm »

.
« Last Edit: October 26, 2015, 07:18:40 pm by penguinofhonor »
Logged

Capntastic

  • Bay Watcher
  • Greetings, mortals!
    • View Profile
    • A review and literature weblog I never update
Re: Internal random number generator
« Reply #3 on: December 23, 2007, 10:13:00 pm »

Yeah.   DF has more than one RNG method.   One of which ensures sameness of worlds between seeds and such.
Logged

Ari Rahikkala

  • Bay Watcher
    • View Profile
Re: Internal random number generator
« Reply #4 on: December 24, 2007, 01:49:00 pm »

Cool. I guess the reason why the seeds in the seed archive didn't work for me (on Wine) was that I got confused by the versions or mistyped them or something, then...
Logged