public function getAppropriatePeerSize(int $sizeOfList = 0) : int { if ($sizeOfList < 1) { $sizeOfList = \count($this->peers); } $log = (int) \ceil(\log($sizeOfList)); if ($log < 1) { return 1; } return $log; }