Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 49b821a

Browse files
Consistent ordering to tuples
1 parent f3d7ef6 commit 49b821a

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

‎main.py‎

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -70,42 +70,42 @@ def sample_seed(seed, i):
7070

7171
# first 33 results from the PRNG
7272
ret_nums = [
73-
(1559595546, 1121899819),
74-
(1755192844, 630111683),
75-
(1649316166, 1501065279),
76-
(1198642031, 458365203),
77-
(442452829, 969558243),
78-
(1200195957, 1876681249),
79-
(1945678308, 962194431),
80-
(949569752, 1077359051),
81-
(2099272109, 265679591),
82-
(587775847, 791886952),
83-
(626863973, 1582116761),
84-
(1003550677, 1676571504),
85-
(1358625013, 1476289907),
86-
(1008269081, 1117239683),
87-
(2109153755, 1503178135),
88-
(65212616, 1341148412),
89-
(1851925803, 902714229),
90-
(2137491580, 1331438416),
91-
(1454235444, 58133212),
92-
(675580731, 831516153),
93-
(1754296375, 285337308),
94-
(1821177336, 526856546),
95-
(2130093701, 362935496),
96-
(70062080, 750214563),
97-
(1503113964, 210465667),
98-
(1130186590, 1381224997),
99-
(2005789796, 1846331200),
100-
(1476653312, 1330597961),
101-
(1174277203, 593162892),
102-
(174182291, 1729496551),
103-
(401846963, 792803163),
104-
(973512717, 565661843),
105-
(638171722, 863554642),
106-
(2122881600, 53838754),
73+
(1121899819, 1559595546),
74+
(630111683, 1755192844),
75+
(1501065279, 1649316166),
76+
(458365203, 1198642031),
77+
(969558243, 442452829),
78+
(1876681249, 1200195957),
79+
(962194431, 1945678308),
80+
(1077359051, 949569752),
81+
(265679591, 2099272109),
82+
(791886952, 587775847),
83+
(1582116761, 626863973),
84+
(1676571504, 1003550677),
85+
(1476289907, 1358625013),
86+
(1117239683, 1008269081),
87+
(1503178135, 2109153755),
88+
(1341148412, 65212616),
89+
(902714229, 1851925803),
90+
(1331438416, 2137491580),
91+
(58133212, 1454235444),
92+
(831516153, 675580731),
93+
(285337308, 1754296375),
94+
(526856546, 1821177336),
95+
(362935496, 2130093701),
96+
(750214563, 70062080),
97+
(210465667, 1503113964),
98+
(1381224997, 1130186590),
99+
(1846331200, 2005789796),
100+
(1330597961, 1476653312),
101+
(593162892, 1174277203),
102+
(1729496551, 174182291),
103+
(792803163, 401846963),
104+
(565661843, 973512717),
105+
(863554642, 638171722),
106+
(53838754, 2122881600),
107107
]
108-
add, mul = ret_nums[i]
108+
mul, add = ret_nums[i]
109109
return (add + mul * subtraction) % MBIG
110110

111111
# invert prng, ie: invert_sample(sample_seed(seed, n), n) == x

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /