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:
3ab60cd
)
Revert "[4.0] Initialize random number generator"
12/153312/1
author
Jinho, Lee
<jeano.lee@samsung.com>
Thu, 28 Sep 2017 04:24:06 +0000
(13:24 +0900)
committer
Jinho, Lee
<jeano.lee@samsung.com>
Thu, 28 Sep 2017 04:24:17 +0000
(13:24 +0900)
This reverts commit
3ab60cd59158d0e53200b4ac6499eea712f7d325
.
Change-Id: Ic2b1df528a68a69baf2e905db97878957853817d
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 97818f587e1cf0c64b5f0839dd3f004937a51f46..8067112fc767d305bf6d0f4f000201a358ca320f 100644
(file)
--- a/
dali/public-api/math/random.h
+++ b/
dali/public-api/math/random.h
@@
-48,7
+48,6
@@
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);
}