aboutsummaryrefslogtreecommitdiffstats
path: root/prog/rand.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <wp32pw@gmail.com>2024-03-08 17:24:27 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2024-03-08 16:36:20 +0000
commit052b897ff963e84cb5f7d41649b6e5f2a74b3268 (patch)
tree7d2382b675a5b5cd36a1b86a075488113d7f06b6 /prog/rand.go
parent666fe1b4b5e1245111f06d056e691585b1d4d672 (diff)
Revert "prog: auto-set proper conditional fields in Deserialize()"
This reverts commit 8e75c913b6f9b09cab2ad31fd7d66ea0d1703de8.
Diffstat (limited to 'prog/rand.go')
-rw-r--r--prog/rand.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/rand.go b/prog/rand.go
index 742dbaa7c..aca3163bd 100644
--- a/prog/rand.go
+++ b/prog/rand.go
@@ -886,7 +886,7 @@ func (a *UnionType) generate(r *randGen, s *state, dir Dir) (arg Arg, calls []*C
if a.isConditional() {
// Conditions may reference other fields that may not have already
// been generated. We'll fill them in later.
- return a.DefaultArg(dir), nil
+ return a.DefaultTransientArg(dir), nil
}
index := r.Intn(len(a.Fields))
optType, optDir := a.Fields[index].Type, a.Fields[index].Dir(dir)