Skip to content

Commit

Permalink
Merge branch 'main' of github.com:zfedoran/go-wfc
Browse files Browse the repository at this point in the history
  • Loading branch information
zfedoran committed Apr 4, 2022
2 parents 9b88651 + d4ac4f8 commit 0e4bc76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/wfc/wave.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewWithCustomConstraints(tiles []image.Image, width, height int, fn Constra
//
// Each module is equally likely to be at each slot.
func (w *Wave) Initialize(seed int) {
rand.Seed(int64(seed))
rand.Seed(int64(seed)) // TODO: move off rand... this isn't thread safe; we can do better :)

w.PossibilitySpace = make([]*Slot, w.Width*w.Height)
for x := 0; x < w.Width; x++ {
Expand Down

0 comments on commit 0e4bc76

Please sign in to comment.