File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ name = "bson"
46
46
[dependencies ]
47
47
ahash = " 0.7.2"
48
48
chrono = " 0.4.15"
49
- rand = " 0.7 "
49
+ rand = " 0.8 "
50
50
serde = { version = " 1.0" , features = [" derive" ] }
51
51
serde_json = { version = " 1.0" , features = [" preserve_order" ] }
52
52
indexmap = " 1.6.2"
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const COUNTER_OFFSET: usize = PROCESS_ID_OFFSET + PROCESS_ID_SIZE;
26
26
const MAX_U24 : usize = 0xFF_FFFF ;
27
27
28
28
lazy_static ! {
29
- static ref OID_COUNTER : AtomicUsize = AtomicUsize :: new( thread_rng( ) . gen_range( 0 , MAX_U24 + 1 ) ) ;
29
+ static ref OID_COUNTER : AtomicUsize = AtomicUsize :: new( thread_rng( ) . gen_range( 0 ..= MAX_U24 ) ) ;
30
30
}
31
31
32
32
/// Errors that can occur during [`ObjectId`] construction and generation.
You can’t perform that action at this time.
0 commit comments