[4.0] Initialize random number generator 18/153318/1
authorJinho, Lee <jeano.lee@samsung.com>
Thu, 28 Sep 2017 04:28:37 +0000 (13:28 +0900)
committerJinho, 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

index 8067112..97818f5 100644 (file)
@@ -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);
 }