File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2885
2885
static constexpr size_t long_lag = r;
2886
2886
static constexpr result_type min() { return 0; }
2887
2887
static constexpr result_type max() { return @$ m - 1 $ @; }
2888
- static constexpr result_type default_seed = 19780503u;
2888
+ static constexpr uint_least32_t default_seed = 19780503u;
2889
2889
2890
2890
// constructors and seeding functions
2891
- subtract_with_carry_engine() : subtract_with_carry_engine(default_seed ) {}
2891
+ subtract_with_carry_engine() : subtract_with_carry_engine(0u ) {}
2892
2892
explicit subtract_with_carry_engine(result_type value);
2893
2893
template<class Sseq> explicit subtract_with_carry_engine(Sseq& q);
2894
- void seed(result_type value = default_seed );
2894
+ void seed(result_type value = 0u );
2895
2895
template<class Sseq> void seed(Sseq& q);
2896
2896
2897
2897
// equality operators
2946
2946
first construct \tcode {e}, a \tcode {linear_congruential_engine} object,
2947
2947
as if by the following definition:
2948
2948
\begin {codeblock }
2949
- linear_congruential_engine<result_type ,
2949
+ linear_congruential_engine<uint_least32_t ,
2950
2950
40014u,0u,2147483563u> e(value == 0u ? default_seed : value);
2951
2951
\end {codeblock }
2952
2952
Then, to set each $ X_k$ ,
You can’t perform that action at this time.
0 commit comments