mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-31 12:19:35 +08:00
moved rehash position in classic.cpp
This commit is contained in:
parent
fc5cbc9b0c
commit
f8efcaf48b
@ -97,13 +97,14 @@ struct anti_replay_t
|
||||
}
|
||||
void prepare()
|
||||
{
|
||||
st.rehash(anti_replay_buff_size*10);
|
||||
anti_replay_seq=get_true_random_number();//random first seq
|
||||
const_id=get_true_random_number_nz();
|
||||
}
|
||||
anti_replay_t()
|
||||
{
|
||||
memset(replay_buffer,0,sizeof(replay_buffer));
|
||||
st.rehash(anti_replay_buff_size*10);
|
||||
|
||||
max_packet_received=0;
|
||||
index=0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user