Index: third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs |
diff --git a/third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs b/third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs |
index e1006f10194d03490e70fcb1977b8392911e7040..11ad6216dd36d4d7f4381aba1c54756a0d177e91 100644 |
--- a/third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs |
+++ b/third_party/protobuf/csharp/src/Google.Protobuf/ByteString.cs |
@@ -303,7 +303,7 @@ namespace Google.Protobuf |
int ret = 23; |
foreach (byte b in bytes) |
{ |
- ret = (ret * 31) + b; |
+ ret = (ret << 8) | b; |
} |
return ret; |
} |