protected static function getRandomArray($length)
    {
        $bytes = random_bytes($length * 2);
        $result = [];
        foreach (unpack('S*', $bytes) as $long) {
            $result[] = $long / 0xFFFF;
        }
        return $result;
    }