Skip to content

Commit

Permalink
Fixing probability that was slightly off
Browse files Browse the repository at this point in the history
Thanks to @AL-JiongYang  for pointing this out

Closes #38
  • Loading branch information
msoos committed Sep 20, 2023
1 parent d8889e0 commit 8ab5426
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ if (GIT_EXECUTABLE)
else()
set(GIT_SHA "GIT-hash-notfound")
endif()
set(APPROXMC_FULL_VERSION "4.1.14")
set(APPROXMC_FULL_VERSION "4.1.15")

string(REPLACE "." ";" APPROXMC_FULL_VERSION_LIST ${APPROXMC_FULL_VERSION})
SetVersionNumber("PROJECT" ${APPROXMC_FULL_VERSION_LIST})
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyapproxmc"
version = "4.1.14"
version = "4.1.15"
description = "Bindings to ApproxMC, an approximate model counter"
keywords = ["sat", "model-counting"]
license = { file = "LICENSE" }
Expand Down
2 changes: 1 addition & 1 deletion src/counter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ string Counter::gen_rnd_bits(
SparseData& sparse_data)
{
string randomBits;
std::uniform_int_distribution<uint32_t> dist{0, 1000};
std::uniform_int_distribution<uint32_t> dist{0, 999};
uint32_t cutoff = 500;
if (conf.sparse && sparse_data.table_no != -1) {
//Do we need to update the probability?
Expand Down

0 comments on commit 8ab5426

Please sign in to comment.