Merge pull request #414 from lioncash/retval
fuzz_util: Simplify result return in InstructionGenerator's Generate() function
This commit is contained in:
commit
e1a9b17366
1 changed files with 2 additions and 4 deletions
|
@ -56,8 +56,6 @@ InstructionGenerator::InstructionGenerator(const char* format){
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 InstructionGenerator::Generate() const {
|
u32 InstructionGenerator::Generate() const {
|
||||||
u32 inst;
|
const u32 random = RandInt<u32>(0, 0xFFFFFFFF);
|
||||||
u32 random = RandInt<u32>(0, 0xFFFFFFFF);
|
return bits | (random & ~mask);
|
||||||
inst = bits | (random & ~mask);
|
|
||||||
return inst;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue