Function seed

Synopsis

#include <include/internal/catch_random_number_generator.h>

void seed(result_type seed_)

Description

No description yet.

Source

Lines 40-45 in include/internal/catch_random_number_generator.cpp. Line 35 in include/internal/catch_random_number_generator.h.

void SimplePcg32::seed(result_type seed_) {
    m_state = 0;
    (*this)();
    m_state += seed_;
    (*this)();
}





Add Discussion as Guest

Log in