• Home
  • Raw
  • Download

Lines Matching defs:randGen

18 type randGen struct {  struct
19 *rand.Rand
20 target *Target
21 inCreateResource bool
22 recDepth map[string]int
33 func (r *randGen) rand(n int) uint64 {
37 func (r *randGen) randRange(begin, end uint64) uint64 {
41 func (r *randGen) bin() bool {
45 func (r *randGen) oneOf(n int) bool {
49 func (r *randGen) rand64() uint64 {
68 func (r *randGen) randInt() uint64 {
94 func (r *randGen) randRangeInt(begin uint64, end uint64) uint64 {
103 func (r *randGen) biasedRand(n, k int) int {
110 func (r *randGen) randArrayLen() uint64 {
117 func (r *randGen) randBufLen() (n uint64) {
127 func (r *randGen) randPageCount() (n uint64) {
139 func (r *randGen) flags(vv []uint64) (v uint64) {
155 func (r *randGen) filename(s *state, typ *BufferType) string {
174 func (r *randGen) filenameImpl(s *state) string {
208 func (r *randGen) randString(s *state, t *BufferType) []byte {
243 func (r *randGen) allocAddr(s *state, typ Type, size uint64, data Arg) *PointerArg {
247 func (r *randGen) allocVMA(s *state, typ Type, numPages uint64) *PointerArg {
252 func (r *randGen) createResource(s *state, res *ResourceType) (arg Arg, calls []*Call) {
327 func (r *randGen) generateText(kind TextKind) []byte {
342 func (r *randGen) mutateText(kind TextKind, text []byte) []byte {
385 func (r *randGen) nOutOf(n, outOf int) bool {
393 func (r *randGen) generateCall(s *state, p *Prog) []*Call {
408 func (r *randGen) generateParticularCall(s *state, meta *Syscall) (calls []*Call) {
463 func (r *randGen) generateArgs(s *state, types []Type) ([]Arg, []*Call) {
480 func (r *randGen) generateArg(s *state, typ Type) (arg Arg, calls []*Call) {
484 func (r *randGen) generateArgImpl(s *state, typ Type, ignoreSpecial bool) (arg Arg, calls []*Call) {
535 func (a *ResourceType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
561 func (a *BufferType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
608 func (a *VmaType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
616 func (a *FlagsType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
620 func (a *ConstType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
624 func (a *IntType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
642 func (a *ProcType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
646 func (a *ArrayType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
663 func (a *StructType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
669 func (a *UnionType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
675 func (a *PtrType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
681 func (a *LenType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {
686 func (a *CsumType) generate(r *randGen, s *state) (arg Arg, calls []*Call) {