##// 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 1 # This file is automatically @generated by Cargo.
2 2 # It is not intended for manual editing.
3 version = 3
4
3 5 [[package]]
4 6 name = "adler"
5 7 version = "0.2.3"
@@ -354,6 +356,17 b' dependencies = ['
354 356 ]
355 357
356 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 370 name = "glob"
358 371 version = "0.3.0"
359 372 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -395,7 +408,7 b' dependencies = ['
395 408 "memmap2",
396 409 "micro-timer",
397 410 "pretty_assertions",
398 "rand",
411 "rand 0.8.4",
399 412 "rand_distr",
400 413 "rand_pcg",
401 414 "rayon",
@@ -447,7 +460,7 b' source = "registry+https://github.com/ru'
447 460 checksum = "3ca8957e71f04a205cb162508f9326aea04676c8dfd0711220190d6b83664f3f"
448 461 dependencies = [
449 462 "bitmaps",
450 "rand_core",
463 "rand_core 0.5.1",
451 464 "rand_xoshiro",
452 465 "sized-chunks",
453 466 "typenum",
@@ -485,6 +498,12 b' source = "registry+https://github.com/ru'
485 498 checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb"
486 499
487 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 507 name = "libz-sys"
489 508 version = "1.1.2"
490 509 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -584,6 +603,7 b' source = "registry+https://github.com/ru'
584 603 checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
585 604 dependencies = [
586 605 "autocfg",
606 "libm",
587 607 ]
588 608
589 609 [[package]]
@@ -691,11 +711,23 b' version = "0.7.3"'
691 711 source = "registry+https://github.com/rust-lang/crates.io-index"
692 712 checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
693 713 dependencies = [
694 "getrandom",
714 "getrandom 0.1.15",
695 715 "libc",
696 "rand_chacha",
697 "rand_core",
698 "rand_hc",
716 "rand_chacha 0.2.2",
717 "rand_core 0.5.1",
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 733 [[package]]
@@ -705,7 +737,17 b' source = "registry+https://github.com/ru'
705 737 checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
706 738 dependencies = [
707 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 753 [[package]]
@@ -714,16 +756,26 b' version = "0.5.1"'
714 756 source = "registry+https://github.com/rust-lang/crates.io-index"
715 757 checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
716 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 771 [[package]]
721 772 name = "rand_distr"
722 version = "0.2.2"
773 version = "0.4.2"
723 774 source = "registry+https://github.com/rust-lang/crates.io-index"
724 checksum = "96977acbdd3a6576fb1d27391900035bf3863d4a16422973a409b488cf29ffb2"
775 checksum = "964d548f8e7d12e102ef183a0de7e98180c9f8729f555897a857b96e48122d2f"
725 776 dependencies = [
726 "rand",
777 "num-traits",
778 "rand 0.8.4",
727 779 ]
728 780
729 781 [[package]]
@@ -732,16 +784,25 b' version = "0.2.0"'
732 784 source = "registry+https://github.com/rust-lang/crates.io-index"
733 785 checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
734 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 799 [[package]]
739 800 name = "rand_pcg"
740 version = "0.2.1"
801 version = "0.3.1"
741 802 source = "registry+https://github.com/rust-lang/crates.io-index"
742 checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429"
803 checksum = "59cad018caf63deb318e5a4586d99a24424a364f40f1e5778c29aca23f4fc73e"
743 804 dependencies = [
744 "rand_core",
805 "rand_core 0.6.3",
745 806 ]
746 807
747 808 [[package]]
@@ -750,7 +811,7 b' version = "0.4.0"'
750 811 source = "registry+https://github.com/rust-lang/crates.io-index"
751 812 checksum = "a9fcdd2e881d02f1d9390ae47ad8e5696a9e4be7b547a1da2afbc61973217004"
752 813 dependencies = [
753 "rand_core",
814 "rand_core 0.5.1",
754 815 ]
755 816
756 817 [[package]]
@@ -904,7 +965,7 b' checksum = "7a6e24d9338a0a5be79593e2fa15'
904 965 dependencies = [
905 966 "cfg-if 0.1.10",
906 967 "libc",
907 "rand",
968 "rand 0.7.3",
908 969 "redox_syscall",
909 970 "remove_dir_all",
910 971 "winapi",
@@ -955,7 +1016,7 b' source = "registry+https://github.com/ru'
955 1016 checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59"
956 1017 dependencies = [
957 1018 "cfg-if 0.1.10",
958 "rand",
1019 "rand 0.7.3",
959 1020 "static_assertions",
960 1021 ]
961 1022
@@ -1000,7 +1061,7 b' source = "registry+https://github.com/ru'
1000 1061 checksum = "4cb68c231e2575f7503a7c19213875f9d4ec2e84e963a56ce3de4b6bee351ef7"
1001 1062 dependencies = [
1002 1063 "hex",
1003 "rand",
1064 "rand 0.7.3",
1004 1065 "sha-1",
1005 1066 ]
1006 1067
@@ -18,9 +18,9 b' im-rc = "15.0.*"'
18 18 itertools = "0.9"
19 19 lazy_static = "1.4.0"
20 20 libc = "0.2"
21 rand = "0.7.3"
22 rand_pcg = "0.2.1"
23 rand_distr = "0.2.2"
21 rand = "0.8.4"
22 rand_pcg = "0.3.1"
23 rand_distr = "0.4.2"
24 24 rayon = "1.3.0"
25 25 regex = "1.3.9"
26 26 sha-1 = "0.9.6"
@@ -207,7 +207,7 b" impl<'on_disk> Docket<'on_disk> {"
207 207 // One random hexadecimal digit.
208 208 // `unwrap` never panics because `impl Write for String`
209 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 212 id
213 213 }
@@ -32,11 +32,11 b' fn build_random_graph('
32 32 if i == 2 || rng.gen_bool(prevprob) {
33 33 (i - 1) as Revision
34 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 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 40 if p2 >= p1 {
41 41 p2 = p2 + 1;
42 42 }
@@ -44,7 +44,7 b' fn build_random_graph('
44 44 } else if rng.gen_bool(prevprob) {
45 45 vg.push([(i - 1) as Revision, NULL_REVISION])
46 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 50 vg
General Comments 0
You need to be logged in to leave comments. Login now