From 7f3de835e4c53faf11cbfce4ead42cbbfbe4bb03 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 17 Oct 2023 15:23:39 +0100 Subject: [PATCH] Block: private internal function --- src/block/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block/Block.php b/src/block/Block.php index a81b15211..a8b370cc7 100644 --- a/src/block/Block.php +++ b/src/block/Block.php @@ -95,7 +95,7 @@ class Block{ * The type ID is included in the XOR mask. This is not necessary to improve distribution, but it reduces the number * of operations required to compute the state ID (micro optimization). */ - public static function computeStateIdXorMask(int $typeId) : int{ + private static function computeStateIdXorMask(int $typeId) : int{ return $typeId << self::INTERNAL_STATE_DATA_BITS | (Binary::readLong(hash('xxh3', Binary::writeLLong($typeId), binary: true)) & self::INTERNAL_STATE_DATA_MASK);