Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/pcg_extras.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,9 @@ class seed_seq_from {
private:
RngType rng_;

public:
typedef uint_least32_t result_type;

public:
template<typename... Args>
seed_seq_from(Args&&... args) :
rng_(std::forward<Args>(args)...)
Expand Down
16 changes: 13 additions & 3 deletions include/pcg_random.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class specific_stream {

void set_stream(itype specific_seq)
{
inc_ = (specific_seq << 1) | 1;
inc_ = (specific_seq << 1) | static_cast<itype>(1u);
}

static constexpr bool can_specify_stream = true;
Expand Down Expand Up @@ -1868,11 +1868,21 @@ typedef pcg_engines::oneseq_xsh_rr_64_32 pcg32_oneseq;
typedef pcg_engines::unique_xsh_rr_64_32 pcg32_unique;
typedef pcg_engines::mcg_xsh_rs_64_32 pcg32_fast;

typedef pcg_engines::setseq_dxsm_64_32 pcg32_dxsm;
typedef pcg_engines::oneseq_dxsm_64_32 pcg32_dxsm_oneseq;
typedef pcg_engines::unique_dxsm_64_32 pcg32_dxsm_unique;
typedef pcg_engines::mcg_dxsm_64_32 pcg32_dxsm_fast;

typedef pcg_engines::setseq_xsl_rr_128_64 pcg64;
typedef pcg_engines::oneseq_xsl_rr_128_64 pcg64_oneseq;
typedef pcg_engines::unique_xsl_rr_128_64 pcg64_unique;
typedef pcg_engines::mcg_xsl_rr_128_64 pcg64_fast;

typedef pcg_engines::setseq_dxsm_128_64 pcg64_dxsm;
typedef pcg_engines::oneseq_dxsm_128_64 pcg64_dxsm_oneseq;
typedef pcg_engines::unique_dxsm_128_64 pcg64_dxsm_unique;
typedef pcg_engines::mcg_dxsm_128_64 pcg64_dxsm_fast;

typedef pcg_engines::setseq_rxs_m_xs_8_8 pcg8_once_insecure;
typedef pcg_engines::setseq_rxs_m_xs_16_16 pcg16_once_insecure;
typedef pcg_engines::setseq_rxs_m_xs_32_32 pcg32_once_insecure;
Expand Down Expand Up @@ -1902,8 +1912,8 @@ typedef pcg_engines::ext_oneseq_xsh_rs_64_32<1,32,true> pcg32_k2_fast;
// (neither is intended for use in cryptographic applications)

typedef pcg_engines::ext_setseq_xsh_rr_64_32<6,16,true> pcg32_k64;
typedef pcg_engines::ext_mcg_xsh_rs_64_32<6,32,true> pcg32_k64_oneseq;
typedef pcg_engines::ext_oneseq_xsh_rs_64_32<6,32,true> pcg32_k64_fast;
typedef pcg_engines::ext_oneseq_xsh_rs_64_32<6,32,true> pcg32_k64_oneseq;
typedef pcg_engines::ext_mcg_xsh_rs_64_32<6,32,true> pcg32_k64_fast;

typedef pcg_engines::ext_setseq_xsh_rr_64_32<6,16,false> pcg32_c64;
typedef pcg_engines::ext_oneseq_xsh_rs_64_32<6,32,false> pcg32_c64_oneseq;
Expand Down