aboutsummaryrefslogtreecommitdiffstats
path: root/util/random/common_ops.h
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-10 10:09:12 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-10 10:26:34 +0300
commit335c640261b6272bc052a251d9b8780150090b45 (patch)
tree7d4a4954aacb63514087edaaf1cd0c9999fcb94d /util/random/common_ops.h
parentb359f0072dbc794d0287c26984dd0ea0a2c27efc (diff)
downloadydb-335c640261b6272bc052a251d9b8780150090b45.tar.gz
Y_VERIFY->Y_ABORT_UNLESS at ^u
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'util/random/common_ops.h')
-rw-r--r--util/random/common_ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/random/common_ops.h b/util/random/common_ops.h
index 602eede351..209e8dbb48 100644
--- a/util/random/common_ops.h
+++ b/util/random/common_ops.h
@@ -47,7 +47,7 @@ namespace NPrivate {
*/
template <class T, class TRandGen>
static T GenUniform(T max, TRandGen&& gen) {
- Y_VERIFY(max > 0, "Invalid random number range [0, 0)");
+ Y_ABORT_UNLESS(max > 0, "Invalid random number range [0, 0)");
const T randmax = gen.RandMax() - gen.RandMax() % max;
T rand;