diff options
| author | levlam <levlam@telegram.org> | 2020-10-08 12:56:08 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2020-10-08 12:56:08 +0300 |
| commit | 582206d641056cf4efa619ee3b7fabe073720de6 (patch) | |
| tree | 6d50c5ecaba1c7d0471eff9536cfc63920b86330 /test/secret.cpp | |
| parent | 291a9ff43b495129fa0c783b59756dfb509aa11f (diff) | |
Use Random::fast_bool.
GitOrigin-RevId: 42da8a237c6dfbb6e72bc5b21482891b6c9d58b5
Diffstat (limited to 'test/secret.cpp')
| -rw-r--r-- | test/secret.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/secret.cpp b/test/secret.cpp index d639c2a47..acb61089d 100644 --- a/test/secret.cpp +++ b/test/secret.cpp @@ -786,7 +786,7 @@ class Master : public Actor { return false; } void send_net_query(NetQueryPtr query, ActorShared<NetQueryCallback> callback, bool ordered) { - if (can_fail(query) && Random::fast(0, 1) == 0) { + if (can_fail(query) && Random::fast_bool()) { LOG(INFO) << "Fail query " << query; auto resend_promise = PromiseCreator::lambda([id = actor_shared(this, get_link_token()), callback_actor = callback.get(), |
