Home
last modified time | relevance | path

Searched refs:Intn (Results 1 – 21 of 21) sorted by relevance

/external/syzkaller/pkg/ifuzz/
Difuzz.go139 for stop := false; !stop || retry || len(insns) == 0; stop = r.Intn(2) == 0 {
141 switch x := r.Intn(100); {
144 i := r.Intn(len(insns))
151 i := r.Intn(len(insns))
155 i := r.Intn(len(insns))
157 for stop := false; !stop || len(text1) == 0; stop = r.Intn(2) == 0 {
158 switch x := r.Intn(100); {
161 pos := r.Intn(len(text1))
166 pos := r.Intn(len(text1))
167 text1[pos] = byte(r.Intn(256))
[all …]
Dencode.go42 for r.Intn(3) == 0 {
64 pref := prefixes[r.Intn(len(prefixes))]
72 if cfg.Mode == ModeLong64 && r.Intn(2) == 0 {
77 rex = byte(0x40 | r.Intn(16))
121 vexR = byte(r.Intn(2))
122 vexX = byte(r.Intn(2))
124 vexB = byte(r.Intn(2))
125 W := byte(r.Intn(2))
131 L := byte(r.Intn(2))
137 pp := byte(r.Intn(4))
[all …]
Dpseudo.go18 msr := msrs[r.Intn(len(msrs))]
31 msr := msrs[r.Intn(len(msrs))]
74 port := ports[r.Intn(len(ports))]
75 gen.in(port, r.Intn(3))
86 port := ports[r.Intn(len(ports))]
88 gen.out(port, uint32(val), r.Intn(3))
99 cr := controlRegisters[r.Intn(len(controlRegisters))]
102 v = uint32(r.Intn(15) + 1)
104 bit := controlRegistersBits[cr][r.Intn(len(controlRegistersBits[cr]))]
122 bit := eferBits[r.Intn(len(eferBits))]
[all …]
/external/syzkaller/prog/
Drand.go34 return uint64(r.Intn(n))
38 return begin + uint64(r.Intn(int(end-begin+1)))
42 return r.Intn(2) == 0
46 return r.Intn(n) == 0
74 v = specialInts[r.Intn(len(specialInts))]
89 v <<= uint(r.Intn(63))
176 return specialFiles[r.Intn(len(specialFiles))]
186 dir = files[r.Intn(len(files))]
205 return files[r.Intn(len(files))]
210 return []byte(t.Values[r.Intn(len(t.Values))])
[all …]
Dmutation.go58 p0 := ctx.corpus[r.Intn(len(ctx.corpus))]
60 idx := r.Intn(len(p.Calls))
74 ptr := complexPtrs[r.Intn(len(complexPtrs))]
93 idx := r.Intn(len(blobs))
128 idx := r.Intn(len(p.Calls))
138 c := p.Calls[r.Intn(len(p.Calls))]
151 idx := r.Intn(len(ma.args))
204 a.Val += uint64(r.Intn(4)) + 1
206 a.Val -= uint64(r.Intn(4)) + 1
208 a.Val ^= 1 << uint64(r.Intn(64))
[all …]
Dminimization_test.go143 ci := r.Intn(len(p.Calls))
144 p1, ci1 := Minimize(p, ci, r.Intn(2) == 0, func(p1 *Prog, callIndex int) bool {
145 return r.Intn(2) == 0
Dprio.go238 return ct.enabledCalls[r.Intn(len(ct.enabledCalls))].ID
242 return ct.enabledCalls[r.Intn(len(ct.enabledCalls))].ID
245 x := r.Intn(run[len(run)-1]) + 1
Dencoding_test.go30 data := make([]byte, r.Intn(4))
32 data[i] = byte(r.Intn(256))
Dtarget.go201 idx := g.r.Intn(len(ma.args))
/external/syzkaller/vendor/google.golang.org/grpc/internal/grpcrand/
Dgrpcrand.go43 func Intn(n int) int { func
45 res := r.Intn(n)
/external/syzkaller/sys/linux/
Dinit_alg.go40 return generateAlgNameStruct(g, typ, allTypes[g.Rand().Intn(len(allTypes))].typ)
69 typ := allTypes[rnd.Intn(len(allTypes))]
76 alg := algs[rnd.Intn(len(algs))]
Dinit_iptables.go63 if g.Rand().Intn(100) == 0 {
68 return offsets[g.Rand().Intn(len(offsets))]
/external/syzkaller/pkg/repro/
Drepro_test.go34 numTotal := rd.Intn(300)
38 if rd.Intn(30) == 0 {
/external/syzkaller/vm/vmimpl/
Dvmimpl.go149 return rand.Intn(64<<10-1<<10) + 1<<10
/external/syzkaller/pkg/csource/
Dcsource_test.go73 opts = append(opts, allPermutations[r.Intn(len(allPermutations))])
/external/syzkaller/pkg/db/
Ddb_test.go104 val[i] = byte(rand.Intn(256))
/external/syzkaller/tools/syz-stress/
Dstress.go92 p = corpus[rnd.Intn(len(corpus))].Clone()
/external/syzkaller/vendor/google.golang.org/grpc/resolver/dns/
Ddns_resolver.go356 return grpcrand.Intn(100)+1 <= *a
/external/syzkaller/syz-fuzzer/
Dproc.go98 p := corpus[proc.rnd.Intn(len(corpus))].Clone()
/external/syzkaller/syz-manager/
Dmanager.go518 j := i + rand.Intn(len(shuffle)-i)
/external/golang-protobuf/proto/
Dall_test.go1560 buf[j] = byte(rng.Intn(256))