fixed a severe index error

This commit is contained in:
2024-04-30 02:34:52 +00:00
parent 0e9a7b2372
commit a037bf97cb
6 changed files with 321 additions and 4 deletions

View File

@ -1,4 +1,4 @@
// 此程序仅用于对拍
// 此程序仅用于对拍,并测试是否存在哈希冲突
#include <cstdint>
#include <cstdio>
#include <fstream>
@ -6,7 +6,6 @@
#include <set>
#include <string>
#include <unordered_map>
#include "bpt/disk_manager.h"
typedef uint64_t hash_t;
inline hash_t Hash(std::string str) noexcept {
constexpr static char salt1[10] = "mL;]-=eT";