File tree 3 files changed +18
-4
lines changed
kube-runtime/src/reflector
3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ pem = "3.0.1"
68
68
pin-project = " 1.0.4"
69
69
proc-macro2 = " 1.0.29"
70
70
quote = " 1.0.10"
71
- rand = " 0.8.3 "
71
+ rand = " 0.9.0 "
72
72
rustls = { version = " 0.23.16" , default-features = false }
73
73
rustls-pemfile = " 2.0.0"
74
74
schemars = " 0.8.6"
Original file line number Diff line number Diff line change @@ -97,3 +97,17 @@ name = "thiserror-impl"
97
97
name = " security-framework"
98
98
[[bans .skip ]]
99
99
name = " core-foundation"
100
+
101
+ # currently tungstenite hasn't upgraded rand to 0.9 yet, all these are related
102
+ [[bans .skip ]]
103
+ name = " rand"
104
+ [[bans .skip ]]
105
+ name = " rand_core"
106
+ [[bans .skip ]]
107
+ name = " rand_chacha"
108
+ [[bans .skip ]]
109
+ name = " getrandom"
110
+ [[bans .skip ]]
111
+ name = " wasi"
112
+ [[bans .skip ]]
113
+ name = " zerocopy"
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ mod tests {
141
141
use futures:: { stream, StreamExt , TryStreamExt } ;
142
142
use k8s_openapi:: { api:: core:: v1:: ConfigMap , apimachinery:: pkg:: apis:: meta:: v1:: ObjectMeta } ;
143
143
use rand:: {
144
- distributions :: { Bernoulli , Uniform } ,
144
+ distr :: { Bernoulli , Uniform } ,
145
145
Rng ,
146
146
} ;
147
147
use std:: collections:: { BTreeMap , HashMap } ;
@@ -256,8 +256,8 @@ mod tests {
256
256
257
257
#[ tokio:: test]
258
258
async fn reflector_store_should_not_contain_duplicates ( ) {
259
- let mut rng = rand:: thread_rng ( ) ;
260
- let item_dist = Uniform :: new ( 0_u8 , 100 ) ;
259
+ let mut rng = rand:: rng ( ) ;
260
+ let item_dist = Uniform :: new ( 0_u8 , 100 ) . unwrap ( ) ;
261
261
let deleted_dist = Bernoulli :: new ( 0.40 ) . unwrap ( ) ;
262
262
let store_w = store:: Writer :: default ( ) ;
263
263
let store = store_w. as_reader ( ) ;
You can’t perform that action at this time.
0 commit comments