Skip to content

Commit

Permalink
Merge pull request apache#154 from antinucleon/master
Browse files Browse the repository at this point in the history
enable get seed from Random
  • Loading branch information
piiswrong committed Jul 21, 2016
2 parents 867be36 + 5e015e6 commit cfb7d23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mshadow/random.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ class Random<cpu, DType> {
this->rseed_ = static_cast<unsigned>(seed);
#endif
}
/*!
* \brief get random seed used in random generator
* \return seed in unsigned
*/
inline unsigned GetSeed() const {
return rseed_;
}
/*!
* \brief set the stream of computation
* \param stream computation stream
Expand Down

0 comments on commit cfb7d23

Please sign in to comment.