Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add int specialization for linear rand #230

Closed
meshula opened this issue Aug 20, 2014 · 2 comments
Closed

Please add int specialization for linear rand #230

meshula opened this issue Aug 20, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@meshula
Copy link

meshula commented Aug 20, 2014

Hi, could you add this to random.inl please?

template <>
GLM_FUNC_QUALIFIER int compute_linearRand::operator()<int> (int const & Min, int const & Max) const
{
    return (std::rand() % (Max - Min)) + Min;
}
@Groovounet
Copy link
Member

This issue is resolved in the master branch for GLM 0.9.6 release.

Thanks for contributing,
Christophe

@meshula
Copy link
Author

meshula commented Sep 6, 2014

awesome, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants