##// END OF EJS Templates
rust: upgrade `rand*` crates...
Martin von Zweigbergk -
r49403:0dc698c9 default
parent child Browse files
Show More
@@ -1,5 +1,7 b''
1 # This file is automatically @generated by Cargo.
1 # This file is automatically @generated by Cargo.
2 # It is not intended for manual editing.
2 # It is not intended for manual editing.
3 version = 3
4
3 [[package]]
5 [[package]]
4 name = "adler"
6 name = "adler"
5 version = "0.2.3"
7 version = "0.2.3"
@@ -354,6 +356,17 b' dependencies = ['
354 ]
356 ]
355
357
356 [[package]]
358 [[package]]
359 name = "getrandom"
360 version = "0.2.4"
361 source = "registry+https://github.com/rust-lang/crates.io-index"
362 checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c"
363 dependencies = [
364 "cfg-if 1.0.0",
365 "libc",
366 "wasi 0.10.0+wasi-snapshot-preview1",
367 ]
368
369 [[package]]
357 name = "glob"
370 name = "glob"
358 version = "0.3.0"
371 version = "0.3.0"
359 source = "registry+https://github.com/rust-lang/crates.io-index"
372 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -395,7 +408,7 b' dependencies = ['
395 "memmap2",
408 "memmap2",
396 "micro-timer",
409 "micro-timer",
397 "pretty_assertions",
410 "pretty_assertions",
398 "rand",
411 "rand 0.8.4",
399 "rand_distr",
412 "rand_distr",
400 "rand_pcg",
413 "rand_pcg",
401 "rayon",
414 "rayon",
@@ -447,7 +460,7 b' source = "registry+https://github.com/ru'
447 checksum = "3ca8957e71f04a205cb162508f9326aea04676c8dfd0711220190d6b83664f3f"
460 checksum = "3ca8957e71f04a205cb162508f9326aea04676c8dfd0711220190d6b83664f3f"
448 dependencies = [
461 dependencies = [
449 "bitmaps",
462 "bitmaps",
450 "rand_core",
463 "rand_core 0.5.1",
451 "rand_xoshiro",
464 "rand_xoshiro",
452 "sized-chunks",
465 "sized-chunks",
453 "typenum",
466 "typenum",
@@ -485,6 +498,12 b' source = "registry+https://github.com/ru'
485 checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb"
498 checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb"
486
499
487 [[package]]
500 [[package]]
501 name = "libm"
502 version = "0.2.1"
503 source = "registry+https://github.com/rust-lang/crates.io-index"
504 checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a"
505
506 [[package]]
488 name = "libz-sys"
507 name = "libz-sys"
489 version = "1.1.2"
508 version = "1.1.2"
490 source = "registry+https://github.com/rust-lang/crates.io-index"
509 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -584,6 +603,7 b' source = "registry+https://github.com/ru'
584 checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
603 checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
585 dependencies = [
604 dependencies = [
586 "autocfg",
605 "autocfg",
606 "libm",
587 ]
607 ]
588
608
589 [[package]]
609 [[package]]
@@ -691,11 +711,23 b' version = "0.7.3"'
691 source = "registry+https://github.com/rust-lang/crates.io-index"
711 source = "registry+https://github.com/rust-lang/crates.io-index"
692 checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
712 checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
693 dependencies = [
713 dependencies = [
694 "getrandom",
714 "getrandom 0.1.15",
695 "libc",
715 "libc",
696 "rand_chacha",
716 "rand_chacha 0.2.2",
697 "rand_core",
717 "rand_core 0.5.1",
698 "rand_hc",
718 "rand_hc 0.2.0",
719 ]
720
721 [[package]]
722 name = "rand"
723 version = "0.8.4"
724 source = "registry+https://github.com/rust-lang/crates.io-index"
725 checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
726 dependencies = [
727 "libc",
728 "rand_chacha 0.3.1",
729 "rand_core 0.6.3",
730 "rand_hc 0.3.1",
699 ]
731 ]
700
732
701 [[package]]
733 [[package]]
@@ -705,7 +737,17 b' source = "registry+https://github.com/ru'
705 checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
737 checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
706 dependencies = [
738 dependencies = [
707 "ppv-lite86",
739 "ppv-lite86",
708 "rand_core",
740 "rand_core 0.5.1",
741 ]
742
743 [[package]]
744 name = "rand_chacha"
745 version = "0.3.1"
746 source = "registry+https://github.com/rust-lang/crates.io-index"
747 checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
748 dependencies = [
749 "ppv-lite86",
750 "rand_core 0.6.3",
709 ]
751 ]
710
752
711 [[package]]
753 [[package]]
@@ -714,16 +756,26 b' version = "0.5.1"'
714 source = "registry+https://github.com/rust-lang/crates.io-index"
756 source = "registry+https://github.com/rust-lang/crates.io-index"
715 checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
757 checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
716 dependencies = [
758 dependencies = [
717 "getrandom",
759 "getrandom 0.1.15",
760 ]
761
762 [[package]]
763 name = "rand_core"
764 version = "0.6.3"
765 source = "registry+https://github.com/rust-lang/crates.io-index"
766 checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
767 dependencies = [
768 "getrandom 0.2.4",
718 ]
769 ]
719
770
720 [[package]]
771 [[package]]
721 name = "rand_distr"
772 name = "rand_distr"
722 version = "0.2.2"
773 version = "0.4.2"
723 source = "registry+https://github.com/rust-lang/crates.io-index"
774 source = "registry+https://github.com/rust-lang/crates.io-index"
724 checksum = "96977acbdd3a6576fb1d27391900035bf3863d4a16422973a409b488cf29ffb2"
775 checksum = "964d548f8e7d12e102ef183a0de7e98180c9f8729f555897a857b96e48122d2f"
725 dependencies = [
776 dependencies = [
726 "rand",
777 "num-traits",
778 "rand 0.8.4",
727 ]
779 ]
728
780
729 [[package]]
781 [[package]]
@@ -732,16 +784,25 b' version = "0.2.0"'
732 source = "registry+https://github.com/rust-lang/crates.io-index"
784 source = "registry+https://github.com/rust-lang/crates.io-index"
733 checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
785 checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
734 dependencies = [
786 dependencies = [
735 "rand_core",
787 "rand_core 0.5.1",
788 ]
789
790 [[package]]
791 name = "rand_hc"
792 version = "0.3.1"
793 source = "registry+https://github.com/rust-lang/crates.io-index"
794 checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7"
795 dependencies = [
796 "rand_core 0.6.3",
736 ]
797 ]
737
798
738 [[package]]
799 [[package]]
739 name = "rand_pcg"
800 name = "rand_pcg"
740 version = "0.2.1"
801 version = "0.3.1"
741 source = "registry+https://github.com/rust-lang/crates.io-index"
802 source = "registry+https://github.com/rust-lang/crates.io-index"
742 checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429"
803 checksum = "59cad018caf63deb318e5a4586d99a24424a364f40f1e5778c29aca23f4fc73e"
743 dependencies = [
804 dependencies = [
744 "rand_core",
805 "rand_core 0.6.3",
745 ]
806 ]
746
807
747 [[package]]
808 [[package]]
@@ -750,7 +811,7 b' version = "0.4.0"'
750 source = "registry+https://github.com/rust-lang/crates.io-index"
811 source = "registry+https://github.com/rust-lang/crates.io-index"
751 checksum = "a9fcdd2e881d02f1d9390ae47ad8e5696a9e4be7b547a1da2afbc61973217004"
812 checksum = "a9fcdd2e881d02f1d9390ae47ad8e5696a9e4be7b547a1da2afbc61973217004"
752 dependencies = [
813 dependencies = [
753 "rand_core",
814 "rand_core 0.5.1",
754 ]
815 ]
755
816
756 [[package]]
817 [[package]]
@@ -904,7 +965,7 b' checksum = "7a6e24d9338a0a5be79593e2fa15'
904 dependencies = [
965 dependencies = [
905 "cfg-if 0.1.10",
966 "cfg-if 0.1.10",
906 "libc",
967 "libc",
907 "rand",
968 "rand 0.7.3",
908 "redox_syscall",
969 "redox_syscall",
909 "remove_dir_all",
970 "remove_dir_all",
910 "winapi",
971 "winapi",
@@ -955,7 +1016,7 b' source = "registry+https://github.com/ru'
955 checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59"
1016 checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59"
956 dependencies = [
1017 dependencies = [
957 "cfg-if 0.1.10",
1018 "cfg-if 0.1.10",
958 "rand",
1019 "rand 0.7.3",
959 "static_assertions",
1020 "static_assertions",
960 ]
1021 ]
961
1022
@@ -1000,7 +1061,7 b' source = "registry+https://github.com/ru'
1000 checksum = "4cb68c231e2575f7503a7c19213875f9d4ec2e84e963a56ce3de4b6bee351ef7"
1061 checksum = "4cb68c231e2575f7503a7c19213875f9d4ec2e84e963a56ce3de4b6bee351ef7"
1001 dependencies = [
1062 dependencies = [
1002 "hex",
1063 "hex",
1003 "rand",
1064 "rand 0.7.3",
1004 "sha-1",
1065 "sha-1",
1005 ]
1066 ]
1006
1067
@@ -18,9 +18,9 b' im-rc = "15.0.*"'
18 itertools = "0.9"
18 itertools = "0.9"
19 lazy_static = "1.4.0"
19 lazy_static = "1.4.0"
20 libc = "0.2"
20 libc = "0.2"
21 rand = "0.7.3"
21 rand = "0.8.4"
22 rand_pcg = "0.2.1"
22 rand_pcg = "0.3.1"
23 rand_distr = "0.2.2"
23 rand_distr = "0.4.2"
24 rayon = "1.3.0"
24 rayon = "1.3.0"
25 regex = "1.3.9"
25 regex = "1.3.9"
26 sha-1 = "0.9.6"
26 sha-1 = "0.9.6"
@@ -207,7 +207,7 b" impl<'on_disk> Docket<'on_disk> {"
207 // One random hexadecimal digit.
207 // One random hexadecimal digit.
208 // `unwrap` never panics because `impl Write for String`
208 // `unwrap` never panics because `impl Write for String`
209 // never returns an error.
209 // never returns an error.
210 write!(&mut id, "{:x}", rng.gen_range(0, 16)).unwrap();
210 write!(&mut id, "{:x}", rng.gen_range(0..16)).unwrap();
211 }
211 }
212 id
212 id
213 }
213 }
@@ -32,11 +32,11 b' fn build_random_graph('
32 if i == 2 || rng.gen_bool(prevprob) {
32 if i == 2 || rng.gen_bool(prevprob) {
33 (i - 1) as Revision
33 (i - 1) as Revision
34 } else {
34 } else {
35 rng.gen_range(0, i - 1) as Revision
35 rng.gen_range(0..i - 1) as Revision
36 }
36 }
37 };
37 };
38 // p2 is a random revision lower than i and different from p1
38 // p2 is a random revision lower than i and different from p1
39 let mut p2 = rng.gen_range(0, i - 1) as Revision;
39 let mut p2 = rng.gen_range(0..i - 1) as Revision;
40 if p2 >= p1 {
40 if p2 >= p1 {
41 p2 = p2 + 1;
41 p2 = p2 + 1;
42 }
42 }
@@ -44,7 +44,7 b' fn build_random_graph('
44 } else if rng.gen_bool(prevprob) {
44 } else if rng.gen_bool(prevprob) {
45 vg.push([(i - 1) as Revision, NULL_REVISION])
45 vg.push([(i - 1) as Revision, NULL_REVISION])
46 } else {
46 } else {
47 vg.push([rng.gen_range(0, i - 1) as Revision, NULL_REVISION])
47 vg.push([rng.gen_range(0..i - 1) as Revision, NULL_REVISION])
48 }
48 }
49 }
49 }
50 vg
50 vg
General Comments 0
You need to be logged in to leave comments. Login now