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:
4c1d314
)
Revert "Initialize random number generator"
73/151973/2
author
Adeel Kazmi
<adeel.kazmi@samsung.com>
Fri, 22 Sep 2017 14:05:47 +0000
(14:05 +0000)
committer
Adeel Kazmi
<adeel.kazmi@samsung.com>
Fri, 22 Sep 2017 14:05:58 +0000
(14:05 +0000)
This reverts commit
44a82fbf3adc959512e01c02cc8fdd1448041d76
.
Change-Id: I0fd10645614e815463a75046a3bae089e778a76a
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
97818f5
..
8067112
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);
}