Salome HOME
projects
/
modules
/
hydro.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
refs #662: the tests for land cover presentations
[modules/hydro.git]
/
src
/
HYDRO_tests
/
random.cxx
1
2
#include <random.h>
3
4
quint32 next = 1;
5
6
void test_srand( quint32 theValue )
7
{
8
next = theValue + 1;
9
}
10
11
quint32 test_rand()
12
{
13
next = next * 1103515245 + 12345;
14
return next % ( 1 << 24 );
15
}