Remove randomInt TerraScript function & remove Random instance from structure API
dfsek opened this issue ยท 3 comments
Currently, TerraScript contains a randomInt
function which fetches the next random integer within a range from a mutable Random object. This Random is supplied by the Structure#generate
method. The randomInt
function should be removed, as well as the Random
parameter from the generate method, in favor of using stateless random sources, specifically noise functions.
(additionally, check elsewhere for any other uses of Random
that we may have forgotten about)
These features can just salt the world seed with some value, probably just a number from the server random.