Fix rng use in Stream::merge

new-scheduler
Stjepan Glavina 5 years ago
parent 2ca03cabe6
commit 5fba3a0928

@ -44,7 +44,7 @@ where
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> { fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
let this = self.project(); let this = self.project();
if utils::random(1) == 1 { if utils::random(2) == 0 {
poll_next_in_order(this.left, this.right, cx) poll_next_in_order(this.left, this.right, cx)
} else { } else {
poll_next_in_order(this.right, this.left, cx) poll_next_in_order(this.right, this.left, cx)

Loading…
Cancel
Save