1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Initialize random seed properly (#742)

Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
EmelyanenkoK 2023-07-14 14:50:03 +03:00 committed by GitHub
parent 119f5a3ccc
commit 08cfc4c6ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ class Collator final : public td::actor::Actor {
BlockIdExt mc_block_id_;
Ref<vm::Cell> mc_state_root;
Ref<vm::Cell> mc_block_root;
td::BitArray<256> rand_seed_;
td::BitArray<256> rand_seed_ = td::Bits256::zero();
std::unique_ptr<block::ConfigInfo> config_;
std::unique_ptr<block::ShardConfig> shard_conf_;
std::map<BlockSeqno, Ref<MasterchainStateQ>> aux_mc_states_;