mirror of
https://github.com/async-rs/async-std.git
synced 2025-02-06 04:35:32 +00:00
Merge pull request #568 from stjepang/fix-random
Fix rng use in Stream::merge
This commit is contained in:
commit
6f19165e0e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ where
|
|||
|
||||
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
|
||||
let this = self.project();
|
||||
if utils::random(1) == 1 {
|
||||
if utils::random(2) == 0 {
|
||||
poll_next_in_order(this.left, this.right, cx)
|
||||
} else {
|
||||
poll_next_in_order(this.right, this.left, cx)
|
||||
|
|
Loading…
Reference in a new issue