#1144628 fails to compile: no method named `random_range` found for struct `ThreadRng` in the current scope

#1144628#5
Date:
2026-08-17 10:23:06 UTC
From:
To:
Crate redis fails to compile:

error[E0599]: no method named `random_range` found for struct `ThreadRng` in the current scope
   --> /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<T, R>(&mut self, range: R) -> 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
   --> /build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:93:5
    |
 93 | /     fn random<T>(&mut self) -> T
 94 | |     where
 95 | |         StandardUniform: Distribution<T>,
    | |_________________________________________^
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
   --> /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<T, R>(&mut self, range: R) -> 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
   --> /build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:93:5
    |
 93 | /     fn random<T>(&mut self) -> T
 94 | |     where
 95 | |         StandardUniform: Distribution<T>,
    | |_________________________________________^
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
   --> /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<T, R>(&mut self, range: R) -> 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
   --> /build/sccache-0.17.0+ds/debian/cargo_registry/rand-0.10.2/src/rng.rs:93:5
    |
 93 | /     fn random<T>(&mut self) -> T
 94 | |     where
 95 | |         StandardUniform: Distribution<T>,
    | |_________________________________________^
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-----

#1144628#12
Date:
2026-08-18 16:50:30 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
rust-redis, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1144628@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Peter Michael Green <plugwash@debian.org> (supplier of updated rust-redis package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 18 Aug 2026 16:18:49 +0000
Source: rust-redis
Architecture: source
Version: 0.32.7-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Changed-By: Peter Michael Green <plugwash@debian.org>
Closes: 1144628
Changes:
 rust-redis (0.32.7-2) unstable; urgency=medium
 .
   * Team upload.
   * Package redis 0.32.7 from crates.io using debcargo 2.8.4
   * Rearrange patches for easier testing.
   * Disable integration tests by removing reference to them from Cargo.toml
     rather than by setting test_is_broken in debcargo.toml. This way autopkgtest
     can at-least test that the code builds and the unit tests pass.
   * Fix build errors with rand 0.10 (Closes: #1144628)
   * Establish baseline for which feature configurations can be expected to
     build successfully.
Checksums-Sha1:
 2ef0d6064086959ca049722a3a0675e9e64e3383 3123 rust-redis_0.32.7-2.dsc
 f9cc07f06dd3fdc76cbc099c5320fa605efe00c9 7492 rust-redis_0.32.7-2.debian.tar.xz
 b967dfb132b196cd29faea1bdd645eef34f56489 8872 rust-redis_0.32.7-2_source.buildinfo
Checksums-Sha256:
 4d39925252523c57ae73f10bc51f3642ae0b5668ec5e9311a43ab733171b1679 3123 rust-redis_0.32.7-2.dsc
 b32935676a690cba895db7b41072b2516c617b47013435c2b96b9f515dbab699 7492 rust-redis_0.32.7-2.debian.tar.xz
 36353ce7f39ff75f72e50bf799bd3fe93ba844e5c91d41cd375b2265da983d4b 8872 rust-redis_0.32.7-2_source.buildinfo
Files:
 a6d515fff0deca88e6459943abe03812 3123 rust optional rust-redis_0.32.7-2.dsc
 8e363ecf81c326e5542f89843b3cc287 7492 rust optional rust-redis_0.32.7-2.debian.tar.xz
 04e4cb1eb4c325527aa294ee1f1ba6f3 8872 rust optional rust-redis_0.32.7-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCAAyFiEEU0DQATYMplbjSX63DEjqKnqP/XsFAmqEigQUHHBsdWd3YXNo
QGRlYmlhbi5vcmcACgkQDEjqKnqP/XtTyw/+IknjKxCqabTPVbqHRjOXnZw+b5Wb
9GDKgrJimWYcxobH+tHwhcmiKVasdenDWGc+YlnWkS1Qyx4elf7VBf60eOeA9JOA
HayS9yTqLoSIfQKz3k8qtOp6DOk/MkfDyWR/wqyLfNpx2DujRpgrMiGcnOe/etIk
o9NprPTIPvUFeB4p7GfNaXc8+N1Fzsown4hfutIaN2fd2R5fv4TX88jiRhdwS9vw
Wv2ujEzrTixwzWWdGiPo1DeIsK171zN/HYdGLdZZW8d6awHSAEQdATIFAii6ds5N
KkIb9K0wd2x1H5oDL9JE2/nf0ALmlOZ/lAbBGGmMUnez5eM6dI4fFvyoZ8XmocWT
EAzwLyJlTYU9RN83WW2RuOIXMFDxWU4CIHjc2kAfkGCz2uwrtALWMsA6hmv6YeJT
MOzmQZd7OwgqNYWDtBm/S1+LW5t2GI9whJ0UTmmDfGZ0V+lq34oO9E7irxy4HnNq
LwAnjziY/dqjovTCEH9L8G9Mc5veSKssr8zjCzLEvKcbDorjQiv2EjfGNBgPT+jD
6iaaeo5cg2uT6539yILhnZkOsTDO2TxHSHDwKyeGMKzk1FUEXQUVCR4PGsK50A8N
g7rGX8+xJUJgW9MNdZBU/R+wK7kn7K481TdGsZy9TyE58Z0FkDzTzZqlj0rABBPs
MDiaddmP2w/sHJw=
=kULi
-----END PGP SIGNATURE-----