Mutate a random object
| 430 | |
| 431 | // Mutate a random object |
| 432 | void UpdateObject() { |
| 433 | if (heap_.empty()) return; |
| 434 | const int index = rnd_.Uniform(heap_.size()); |
| 435 | CheckContents(heap_[index]); |
| 436 | heap_[index].generation++; |
| 437 | FillContents(&heap_[index]); |
| 438 | } |
| 439 | |
| 440 | // Free a random object |
| 441 | void FreeObject() { |