[From nobody Tue Aug 18 17:53:08 2026
Received: (at submit) by bugs.debian.org; 17 Aug 2026 10:23:10 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.0 required=4.0 tests=BAYES_00,FVGT_m_MULTI_ODD,
 PGPSIGNATURE,SPF_HELO_PASS,SPF_PASS,XMAILER_REPORTBUG autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 95; hammy, 150; neutral, 38; spammy,
 0. spammytokens: hammytokens:0.000-+--H*Ad:N*Bug,
 0.000-+--HTo:N*Debian, 0.000-+--HTo:N*System, 0.000-+--HTo:N*Bug,
 0.000-+--HTo:N*Tracking
Return-path: &lt;dr@jones.dk&gt;
Received: from graograman.jones.dk ([87.104.249.100]:50056
 helo=xayide.jones.dk) by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;dr@jones.dk&gt;) id 1wvuUo-00CdYE-1T
 for submit@bugs.debian.org; Mon, 17 Aug 2026 10:23:10 +0000
Received: from localhost (localhost [127.0.0.1])
 by xayide.jones.dk (Postfix) with ESMTP id 364D44AE1
 for &lt;submit@bugs.debian.org&gt;; Mon, 17 Aug 2026 12:22:52 +0200 (CEST)
Received: from xayide.jones.dk ([127.0.0.1])
 by localhost (xayide.jones.dk [127.0.0.1]) (amavis, port 10024) with LMTP
 id Xv3QWuhVylIc; Mon, 17 Aug 2026 12:22:51 +0200 (CEST)
Received: from localhost (unknown [192.168.222.33])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by xayide.jones.dk (Postfix) with ESMTPSA id F0EAF1A38;
 Mon, 17 Aug 2026 12:22:50 +0200 (CEST)
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jonas Smedegaard &lt;dr@jones.dk&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: fails to compile: no method named `random_range` found for struct
 `ThreadRng` in the current scope
Message-ID: &lt;178696218683.5231.16464839386299205721.reportbug@cairon.jones.dk&gt;
X-Mailer: reportbug 13.2.0+nmu1
Date: Mon, 17 Aug 2026 12:23:06 +0200
Delivered-To: submit@bugs.debian.org

Source: rust-redis
Version: 0.32.7-1
Severity: grave

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Crate redis fails to compile:

error[E0599]: no method named `random_range` found for struct `ThreadRng` in the current scope
   --&gt; /build/sccache-0.17.0+ds/debian/cargo_registry/redis-0.32.7/src/cluster_handling/client.rs:82:41
    |
 82 |         let jittered_wait = rand::rng().random_range(self.min_wait_time..clamped_wait);
    |                                         ^^^^^^^^^^^^
    |
   ::: /build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:163:8
    |
163 |     fn random_range&lt;T, R&gt;(&amp;mut self, range: R) -&gt; T
    |        ------------ the method is available for `ThreadRng` here
    |
    = help: items from traits can only be used if the trait is in scope
help: there is a method `random` with a similar name, but with different arguments
   --&gt; /build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:93:5
    |
 93 | /     fn random&lt;T&gt;(&amp;mut self) -&gt; T
 94 | |     where
 95 | |         StandardUniform: Distribution&lt;T&gt;,
    | |_________________________________________^
help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it
    |
  1 + use rand::RngExt;
    |

error[E0599]: no method named `random_range` found for struct `ThreadRng` in the current scope
   --&gt; /build/sccache-0.17.0+ds/debian/cargo_registry/redis-0.32.7/src/cluster_handling/routing.rs:979:9
    |
979 |     rng.random_range(0..SLOT_SIZE)
    |         ^^^^^^^^^^^^
    |
   ::: /build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:163:8
    |
163 |     fn random_range&lt;T, R&gt;(&amp;mut self, range: R) -&gt; T
    |        ------------ the method is available for `ThreadRng` here
    |
    = help: items from traits can only be used if the trait is in scope
help: there is a method `random` with a similar name, but with different arguments
   --&gt; /build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:93:5
    |
 93 | /     fn random&lt;T&gt;(&amp;mut self) -&gt; T
 94 | |     where
 95 | |         StandardUniform: Distribution&lt;T&gt;,
    | |_________________________________________^
help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it
    |
  1 + use rand::RngExt;
    |

error[E0599]: no method named `random_range` found for struct `ThreadRng` in the current scope
   --&gt; /build/sccache-0.17.0+ds/debian/cargo_registry/redis-0.32.7/src/cluster_handling/sync_connection/mod.rs:582:25
    |
582 |                     rng.random_range(0..SLOT_SIZE),
    |                         ^^^^^^^^^^^^
    |
   ::: /build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:163:8
    |
163 |     fn random_range&lt;T, R&gt;(&amp;mut self, range: R) -&gt; T
    |        ------------ the method is available for `ThreadRng` here
    |
    = help: items from traits can only be used if the trait is in scope
help: there is a method `random` with a similar name, but with different arguments
   --&gt; /build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:93:5
    |
 93 | /     fn random&lt;T&gt;(&amp;mut self) -&gt; T
 94 | |     where
 95 | |         StandardUniform: Distribution&lt;T&gt;,
    | |_________________________________________^
help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it
    |
 65 + use rand::RngExt;
    |

-----BEGIN PGP SIGNATURE-----

iQJABAEBCgAqFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmqC4QcMHGRyQGpvbmVz
LmRrAAoJECx8MUbBoAEhTA0QAIXOxtprc+dZNbuQ7A6OAX3za42hGpiqDjwk6jr7
LN6mDQfsGndmT3FWCtB846/+ZKutreFHiVCjGefpLMJQlNlSd/UQnxbEYFNVACgF
2dzxtkncX63BjZ2o+p1vJbJnMmUFQ925KqPQxL/2h3HTi+NFklmIQQge850xpyZd
obpeVELxAkTEoqAnhNT0jZhkRNb1fAuNgsoiEgDu1dOJXdoFtvx/9mJTMZYcEcBb
tITj9Fmfmjc17ojumjjYOFynAhIq3D98GTj/dK0wmrtQDojfHtDLoqAbywGPvuEA
wnAU3enF36yjJrHFhQKiuQenkcEV46ENxGgJrbLWZXqmog84Sk7M0u7QUYxwyEbS
f2xDuXEklr6ct8KG9BuxAf8jdG+dFaUmMsQSFSCOPlZqAVxNuiUqAI5bxrcoLYVX
oHr+H/a3f7IGgwoDvrNQ8qe9Xc8tjqHJyQ/pOtDe+TVzETxALLck3Ym+HJ4x1Glz
BEdPS9CVwOw3KotSpvqZv+9glI1KJceDkfuk20LGutl+trEngiDftB6eysU8UQl+
OEtfCifRnF0UhlUs3+8n/W16Qq4cMOwtRQhV61hzaUCJpRkl411Wb+W4i4XCnuqU
NX7NozBWCD3XbdCnNQ2Rqwprle5Dh+AWwk9StSf62kmEqxSkFBKEhM4WA6OWiQCE
V+5N
=i+Fm
-----END PGP SIGNATURE-----
]