[frameworks][native][opengl] fix -Wimplicit-int-float-conversion

IEEE754 single precision cannot precisely represent RAND_MAX.

error: implicit conversion from 'int' to 'float' changes value from
2147483647 to 2147483648 [-Werror,-Wimplicit-int-float-conversion]

For purposes of generating random uniforms, this does not matter. Add
explicit casts of RAND_MAX to float to fix.

Bug: 139945549
Test: mm
Change-Id: I3a609b9bbe2e62eeacf5a6853ba625a512e5bcba
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
1 file changed