Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bekadavis9 committed Mar 8, 2024
1 parent c15e17a commit 3d3ce72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tiledb/common/random/random_label.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class RandomLabelGenerator {
/* ********************************* */
/** Generate a random label. */
std::string generate() {
std::lock_guard<std::mutex> lock(mtx_);
PRNG& prng = PRNG::get();
std::lock_guard<std::mutex> lock(mtx_);
auto now = tiledb::sm::utils::time::timestamp_now_ms();

// If no label has been generated this millisecond, generate a new one.
Expand Down Expand Up @@ -106,7 +106,6 @@ class RandomLabelGenerator {
/* ********************************* */
/* PRIVATE ATTRIBUTES */
/* ********************************* */
static RandomLabelGenerator singleton_;

/** Mutex which protects against simultaneous random label generation. */
std::mutex mtx_;
Expand Down

0 comments on commit 3d3ce72

Please sign in to comment.