Skip to content

Commit

Permalink
Update src/transport/MessageCounter.h
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
  • Loading branch information
kghost and bzbarsky-apple authored Jun 10, 2022
1 parent 21eb3e1 commit 8760769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport/MessageCounter.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class MessageCounter
virtual Type GetType() const = 0;
virtual CHIP_ERROR AdvanceAndConsume(uint32_t & fetch) = 0; /** Advance the counter, and feed the new counter to fetch */

// Note: this function must be called after Crypto is initialized. It can not be call from global variable constructor.
// Note: this function must be called after Crypto is initialized. It can not be called from global variable constructor.
static uint32_t GetDefaultInitialValuePredecessor() { return Crypto::GetRandU32() & kMessageCounterRandomInitMask; }
};

Expand Down

0 comments on commit 8760769

Please sign in to comment.