Simon Mikulcik

Results 2 comments of Simon Mikulcik

So where does this put us today. @savage-alex you make a good point about what we actually should and shouldn't document in our specifications. Perhaps we should ask, "when would...

Until this issue is fixed, I have some `unsafe` code to get around this problem: ```go generator, _ := reggen.NewGenerator(regexPattern) rRand := reflect.ValueOf(generator).Elem().FieldByName("rand") reflect.NewAt(rRand.Type(), unsafe.Pointer(rRand.UnsafeAddr())).Elem().Set(reflect.ValueOf(rand.New(rand.NewSource(seed)))) generator.Generate(10) ``` thx to https://stackoverflow.com/a/43918797