both worked
$ newMediaId = md5 (uniqid (time (), TRUE));
or
$ newMediaId = md5 (uniqid ($ _ SERVER ['REQUEST_TIME'], true));
both worked
$ newMediaId = md5 (uniqid (time (), TRUE));
or
$ newMediaId = md5 (uniqid ($ _ SERVER ['REQUEST_TIME'], true));