commit | b93cb42b4b8511d244ec8df4559fdc5c0b2de1bf | [log] [tgz] |
---|---|---|
author | Stephen Hines <[email protected]> | Wed Mar 27 17:32:31 2013 -0700 |
committer | Stephen Hines <[email protected]> | Wed Mar 27 17:32:31 2013 -0700 |
tree | ab1926aa9ebdc7d0ccf3bd25b8b54595322496d4 | |
parent | 11d2f805f851d42b72ecde7b04571961916b74a8 [diff] [blame] |
Add rsRand(float, float) support back to compat lib. Change-Id: I0acaa409908f83c690c95b47979f820bc2dac9f5
diff --git a/cpu_ref/rsCpuRuntimeMath.cpp b/cpu_ref/rsCpuRuntimeMath.cpp index ee82328..04a80e0 100644 --- a/cpu_ref/rsCpuRuntimeMath.cpp +++ b/cpu_ref/rsCpuRuntimeMath.cpp
@@ -96,7 +96,7 @@ m->transpose(); } -static float SC_randf2(float min, float max) { +float SC_randf2(float min, float max) { float r = (float)rand(); r /= RAND_MAX; r = r * (max - min) + min;