Skip to content

Commit

Permalink
Add missing const
Browse files Browse the repository at this point in the history
Signed-off-by: Arkadiusz Kozdra <akozdra@antmicro.com>
  • Loading branch information
kozdra committed Aug 27, 2024
1 parent 4dc2285 commit 6bd10c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/verilated_random.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ bool VlRandomVar::set(std::string&& val) const {
}

void VlRandomizer::randomConstraint(std::ostream& os, VlRNG& rngr, int bits) {
IData hash = VL_RANDOM_RNG_I(rngr) & ((1 << bits) - 1);
const IData hash = VL_RANDOM_RNG_I(rngr) & ((1 << bits) - 1);
std::vector<std::unique_ptr<const VlRandomExpr>> varbits;
for (const auto& var : m_vars) {
for (int i = 0; i < var.second->width(); i++)
Expand Down

0 comments on commit 6bd10c8

Please sign in to comment.