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"
4646[dependencies ]
4747ahash = " 0.7.2"
4848chrono = " 0.4.15"
49- rand = " 0.7 "
49+ rand = " 0.8 "
5050serde = { version = " 1.0" , features = [" derive" ] }
5151serde_json = { version = " 1.0" , features = [" preserve_order" ] }
5252indexmap = " 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;
2626const MAX_U24 : usize = 0xFF_FFFF ;
2727
2828lazy_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 ) ) ;
3030}
3131
3232/// Errors that can occur during [`ObjectId`] construction and generation.
You can’t perform that action at this time.
0 commit comments