File: rand-0.10.patch

package info (click to toggle)
rust-quickcheck 1.0.3-7
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 396 kB
  • sloc: makefile: 4
file content (47 lines) | stat: -rw-r--r-- 1,383 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
This patch is based on ths upstream commit described below, adapted for use
in the Debian package by Peter Michael Green.

commit 85484841688f1df67ee4f69c58bd57eeb3abb0f8
Author: Martin Garton <garton@gmail.com>
Date:   Mon Feb 9 10:15:28 2026 +0000

    deps: bump rand to 0.10.0
    
    Closes #341

Index: quickcheck/src/arbitrary.rs
===================================================================
--- quickcheck.orig/src/arbitrary.rs
+++ quickcheck/src/arbitrary.rs
@@ -22,7 +22,6 @@ use std::sync::Arc;
 use std::time::{Duration, SystemTime, UNIX_EPOCH};
 
 use rand::prelude::*;
-use rand::{Rng, SeedableRng};
 
 /// Gen represents a PRNG.
 ///
@@ -47,7 +46,7 @@ impl Gen {
     /// randomly generated number. (Unless that number is used to control the
     /// size of a data structure.)
     pub fn new(size: usize) -> Gen {
-        Gen { rng: rand::rngs::SmallRng::from_os_rng(), size: size }
+        Gen { rng: rand::make_rng(), size }
     }
 
     /// Returns the size configured with this generator.
Index: quickcheck/Cargo.toml
===================================================================
--- quickcheck.orig/Cargo.toml
+++ quickcheck/Cargo.toml
@@ -37,8 +37,8 @@ version = "0.4"
 optional = true
 
 [dependencies.rand]
-version = "0.9"
-features = ["os_rng", "small_rng"]
+version = "0.10"
+features = ["sys_rng"]
 default-features = false
 
 [features]