From 3d3ce72da062fae626ba672f6f0b45c19e74b324 Mon Sep 17 00:00:00 2001 From: Rebekah Davis Date: Fri, 8 Mar 2024 16:58:23 -0500 Subject: [PATCH] Address comments --- tiledb/common/random/random_label.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tiledb/common/random/random_label.h b/tiledb/common/random/random_label.h index b637ef4db4cd..b48e9d452810 100644 --- a/tiledb/common/random/random_label.h +++ b/tiledb/common/random/random_label.h @@ -71,8 +71,8 @@ class RandomLabelGenerator { /* ********************************* */ /** Generate a random label. */ std::string generate() { - std::lock_guard lock(mtx_); PRNG& prng = PRNG::get(); + std::lock_guard lock(mtx_); auto now = tiledb::sm::utils::time::timestamp_now_ms(); // If no label has been generated this millisecond, generate a new one. @@ -106,7 +106,6 @@ class RandomLabelGenerator { /* ********************************* */ /* PRIVATE ATTRIBUTES */ /* ********************************* */ - static RandomLabelGenerator singleton_; /** Mutex which protects against simultaneous random label generation. */ std::mutex mtx_;