Searched refs:Intn (Results 1 – 21 of 21) sorted by relevance
/external/syzkaller/pkg/ifuzz/ |
D | ifuzz.go | 139 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 …]
|
D | encode.go | 42 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 …]
|
D | pseudo.go | 18 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/ |
D | rand.go | 34 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 …]
|
D | mutation.go | 58 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 …]
|
D | minimization_test.go | 143 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
|
D | prio.go | 238 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
|
D | encoding_test.go | 30 data := make([]byte, r.Intn(4)) 32 data[i] = byte(r.Intn(256))
|
D | target.go | 201 idx := g.r.Intn(len(ma.args))
|
/external/syzkaller/vendor/google.golang.org/grpc/internal/grpcrand/ |
D | grpcrand.go | 43 func Intn(n int) int { func 45 res := r.Intn(n)
|
/external/syzkaller/sys/linux/ |
D | init_alg.go | 40 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))]
|
D | init_iptables.go | 63 if g.Rand().Intn(100) == 0 { 68 return offsets[g.Rand().Intn(len(offsets))]
|
/external/syzkaller/pkg/repro/ |
D | repro_test.go | 34 numTotal := rd.Intn(300) 38 if rd.Intn(30) == 0 {
|
/external/syzkaller/vm/vmimpl/ |
D | vmimpl.go | 149 return rand.Intn(64<<10-1<<10) + 1<<10
|
/external/syzkaller/pkg/csource/ |
D | csource_test.go | 73 opts = append(opts, allPermutations[r.Intn(len(allPermutations))])
|
/external/syzkaller/pkg/db/ |
D | db_test.go | 104 val[i] = byte(rand.Intn(256))
|
/external/syzkaller/tools/syz-stress/ |
D | stress.go | 92 p = corpus[rnd.Intn(len(corpus))].Clone()
|
/external/syzkaller/vendor/google.golang.org/grpc/resolver/dns/ |
D | dns_resolver.go | 356 return grpcrand.Intn(100)+1 <= *a
|
/external/syzkaller/syz-fuzzer/ |
D | proc.go | 98 p := corpus[proc.rnd.Intn(len(corpus))].Clone()
|
/external/syzkaller/syz-manager/ |
D | manager.go | 518 j := i + rand.Intn(len(shuffle)-i)
|
/external/golang-protobuf/proto/ |
D | all_test.go | 1560 buf[j] = byte(rng.Intn(256))
|