Minor cleanup of memtest.
Minor cleanup of memtest.

cpu/memtest/memtest.cc:
    Call random() consistently (not sometimes rand() and sometimes random()).
    Don't bother to call random() for copy-only parameters unless we're
    actually doing a copy.

--HG--
extra : convert_revision : 50ef72594ad53ba531584b3c9dde61ac036a4e38

joerocklin/gem5,zlfben/gem5,HwisooSo/gemV-update,rallylee/gem5,briancoutinho0905/2dsampling,KuroeKurose/gem5,sobercoder/gem5,HwisooSo/gemV-update,briancoutinho0905/2dsampling,aclifton/cpeg853-gem5,HwisooSo/gemV-update,gem5/gem5,Weil0ng/gem5,zlfben/gem5,aclifton/cpeg853-gem5,yb-kim/gemV,rjschof/gem5,Weil0ng/gem5,powerjg/gem5-ci-test,briancoutinho0905/2dsampling,SanchayanMaity/gem5,kaiyuanl/gem5,austinharris/gem5-riscv,TUD-OS/gem5-dtu,Weil0ng/gem5,gedare/gem5,kaiyuanl/gem5,yb-kim/gemV,rjschof/gem5,rjschof/gem5,joerocklin/gem5,rjschof/gem5,cancro7/gem5,markoshorro/gem5,samueldotj/TeeRISC-Simulator,joerocklin/gem5,KuroeKurose/gem5,KuroeKurose/gem5,samueldotj/TeeRISC-Simulator,gedare/gem5,yb-kim/gemV,TUD-OS/gem5-dtu,SanchayanMaity/gem5,austinharris/gem5-riscv,rjschof/gem5,yb-kim/gemV,kaiyuanl/gem5,samueldotj/TeeRISC-Simulator,aclifton/cpeg853-gem5,powerjg/gem5-ci-test,gem5/gem5,HwisooSo/gemV-update,TUD-OS/gem5-dtu,KuroeKurose/gem5,markoshorro/gem5,briancoutinho0905/2dsampling,qizenguf/MLC-STT,KuroeKurose/gem5,briancoutinho0905/2dsampling,sobercoder/gem5,SanchayanMaity/gem5,cancro7/gem5,TUD-OS/gem5-dtu,briancoutinho0905/2dsampling,gem5/gem5,sobercoder/gem5,rallylee/gem5,austinharris/gem5-riscv,markoshorro/gem5,austinharris/gem5-riscv,rallylee/gem5,powerjg/gem5-ci-test,austinharris/gem5-riscv,cancro7/gem5,powerjg/gem5-ci-test,aclifton/cpeg853-gem5,Weil0ng/gem5,zlfben/gem5,zlfben/gem5,TUD-OS/gem5-dtu,cancro7/gem5,aclifton/cpeg853-gem5,KuroeKurose/gem5,markoshorro/gem5,Weil0ng/gem5,zlfben/gem5,gem5/gem5,powerjg/gem5-ci-test,joerocklin/gem5,SanchayanMaity/gem5,zlfben/gem5,rallylee/gem5,samueldotj/TeeRISC-Simulator,powerjg/gem5-ci-test,qizenguf/MLC-STT,cancro7/gem5,markoshorro/gem5,gedare/gem5,rjschof/gem5,aclifton/cpeg853-gem5,kaiyuanl/gem5,cancro7/gem5,briancoutinho0905/2dsampling,SanchayanMaity/gem5,rjschof/gem5,joerocklin/gem5,kaiyuanl/gem5,TUD-OS/gem5-dtu,yb-kim/gemV,sobercoder/gem5,zlfben/gem5,austinharris/gem5-riscv,gedare/gem5,joerocklin/gem5,KuroeKurose/gem5,sobercoder/gem5,HwisooSo/gemV-update,gem5/gem5,Weil0ng/gem5,joerocklin/gem5,gedare/gem5,kaiyuanl/gem5,SanchayanMaity/gem5,markoshorro/gem5,qizenguf/MLC-STT,joerocklin/gem5,yb-kim/gemV,cancro7/gem5,SanchayanMaity/gem5,qizenguf/MLC-STT,sobercoder/gem5,sobercoder/gem5,qizenguf/MLC-STT,HwisooSo/gemV-update,gem5/gem5,rallylee/gem5,gedare/gem5,gedare/gem5,gem5/gem5,HwisooSo/gemV-update,aclifton/cpeg853-gem5,kaiyuanl/gem5,samueldotj/TeeRISC-Simulator,Weil0ng/gem5,yb-kim/gemV,rallylee/gem5,rallylee/gem5,powerjg/gem5-ci-test,TUD-OS/gem5-dtu,austinharris/gem5-riscv,yb-kim/gemV,qizenguf/MLC-STT,samueldotj/TeeRISC-Simulator,qizenguf/MLC-STT,samueldotj/TeeRISC-Simulator,markoshorro/gem5