Changeset 606:c5fd2d996909 in lemon for lemon/random.h
- Timestamp:
- 03/29/09 23:08:20 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/random.h
r564 r606 604 604 /// function with the <tt>/dev/urandom</tt> file. If it does not success, 605 605 /// it uses the \c seedFromTime(). 606 /// \return Currently always true.606 /// \return Currently always \c true. 607 607 bool seed() { 608 608 #ifndef WIN32 … … 625 625 /// \param file The source file 626 626 /// \param offset The offset, from the file read. 627 /// \return True when the seeding successes.627 /// \return \c true when the seeding successes. 628 628 #ifndef WIN32 629 629 bool seedFromFile(const std::string& file = "/dev/urandom", int offset = 0) … … 646 646 /// current process id and the current time for initialize the 647 647 /// random sequence. 648 /// \return Currently always true.648 /// \return Currently always \c true. 649 649 bool seedFromTime() { 650 650 #ifndef WIN32
Note: See TracChangeset
for help on using the changeset viewer.