reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/fuzzer/FuzzerMutate.cpp
   70   return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, Rand.Rand());
   97   size_t ShuffleStart = Rand(Size - ShuffleAmount);
  106   size_t N = Rand(Size / 2) + 1;
  108   size_t Idx = Rand(Size - N + 1);
  118   size_t Idx = Rand(Size + 1);
  121   Data[Idx] = RandCh(Rand);
  131   size_t N = Rand(MaxBytesToInsert - kMinBytesToInsert + 1) + kMinBytesToInsert;
  133   size_t Idx = Rand(Size + 1);
  137   uint8_t Byte = Rand.RandBool() ? Rand(256) : (Rand.RandBool() ? 0 : 255);
  137   uint8_t Byte = Rand.RandBool() ? Rand(256) : (Rand.RandBool() ? 0 : 255);
  137   uint8_t Byte = Rand.RandBool() ? Rand(256) : (Rand.RandBool() ? 0 : 255);
  146   size_t Idx = Rand(Size);
  147   Data[Idx] = RandCh(Rand);
  154   size_t Idx = Rand(Size);
  155   Data[Idx] ^= 1 << Rand(8);
  172   if (Rand.RandBool()) {  // Insert W.
  174     size_t Idx = UsePositionHint ? DE.GetPositionHint() : Rand(Size + 1);
  197   bool HandleFirst = Rand.RandBool();
  227   if (Rand.RandBool()) Arg1 = Bswap(Arg1);
  228   if (Rand.RandBool()) Arg2 = Bswap(Arg2);
  229   T Arg1Mutation = Arg1 + Rand(-1, 1);
  230   T Arg2Mutation = Arg2 + Rand(-1, 1);
  245   switch (Rand(4)) {
  288   DictionaryEntry &DE = D[Rand(D.size())];
  301   size_t ToBeg = Rand(ToSize);
  302   size_t CopySize = Rand(ToSize - ToBeg) + 1;
  305   size_t FromBeg = Rand(FromSize - CopySize + 1);
  319   size_t CopySize = Rand(MaxCopySize) + 1;
  320   size_t FromBeg = Rand(FromSize - CopySize + 1);
  322   size_t ToInsertPos = Rand(ToSize + 1);
  342   if (Size == MaxSize || Rand.RandBool())
  351   size_t B = Rand(Size);
  364   switch(Rand(5)) {
  369     case 4: Val = Rand(Val * Val); break;
  411   switch (Rand(4)) {
  431   switch(Rand(3)) {
projects/compiler-rt/lib/fuzzer/FuzzerMutate.h
   93   Random &GetRand() { return Rand; }