This patch contains some utility functions that some Image processing kernels will require.
As there is a function initRandomImage which makes rand() function call, I have added glibc_compat_rand so that the random number generated is same across different machines.
glibc_compat_rand.cpp is same as in "MultiSource/Benchmarks/DOE-ProxyApps-C/miniAMR/glibc_compat_rand.c". Only the file type is changed to .cpp without modifying any content of the file because .c was causing linking problems.
In benchmark's "CMakeLists.txt"
**llvm_test_executable(TARGET !!../utils/glibc_compat_rand.c!! ../utils/ImageHelper.cpp CPP_SOURCE_FILES)** : gives error: undefined reference to **glibc_compat_rand**....
**llvm_test_executable(TARGET !!../utils/glibc_compat_rand.cpp!! ../utils/ImageHelper.cpp CPP_SOURCE_FILES)** : Works fine