Skip to content

Commit

Permalink
use fixed source for rnd id generator
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Feb 9, 2020
1 parent cde29c1 commit 7160c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Writer struct {

// NewWriter returns a new Writer writing an OPC file to w.
func NewWriter(w io.Writer) *Writer {
return &Writer{p: newPackage(), w: zip.NewWriter(w), rnd: rand.New(rand.NewSource(time.Now().UnixNano()))}
return &Writer{p: newPackage(), w: zip.NewWriter(w), rnd: rand.New(rand.NewSource(42))}
}

// Flush flushes any buffered data to the underlying writer.
Expand Down

0 comments on commit 7160c44

Please sign in to comment.