projects
/
platform
/
core
/
uifw
/
dali-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b7795e
)
[4.0] Initialize random number generator
18/153318/1
author
Jinho, Lee
<jeano.lee@samsung.com>
Thu, 28 Sep 2017 04:28:37 +0000
(13:28 +0900)
committer
Jinho, Lee
<jeano.lee@samsung.com>
Thu, 28 Sep 2017 04:28:38 +0000
(13:28 +0900)
This reverts commit
bfadf27db5d885b3654d5b2662ac2f1f154d4001
.
Change-Id: I48ff214e69ee2886a6344562220a32a61a05ce89
dali/public-api/math/random.h
patch
|
blob
|
history
diff --git
a/dali/public-api/math/random.h
b/dali/public-api/math/random.h
index
8067112
..
97818f5
100644
(file)
--- a/
dali/public-api/math/random.h
+++ b/
dali/public-api/math/random.h
@@
-48,6
+48,7
@@
inline float Range(float f0, float f1)
{
float min = std::min(f0, f1);
float max = std::max(f0, f1);
+ srand( time( NULL ) );
return min + (rand() & 0xfff) * (max-min) * (1.0f/4095.0f);
}