mirror of
https://github.com/yuzu-mirror/dynarmic.git
synced 2026-02-22 15:14:14 +01:00
fuzz_util: Simplify result return in InstructionGenerator's Generate() function
This can just be a simple direct return without a separated declaration and assignment.
This commit is contained in:
parent
7c8fcaef26
commit
2e62cfc89d
|
|
@ -56,8 +56,6 @@ InstructionGenerator::InstructionGenerator(const char* format){
|
|||
}
|
||||
|
||||
u32 InstructionGenerator::Generate() const {
|
||||
u32 inst;
|
||||
u32 random = RandInt<u32>(0, 0xFFFFFFFF);
|
||||
inst = bits | (random & ~mask);
|
||||
return inst;
|
||||
const u32 random = RandInt<u32>(0, 0xFFFFFFFF);
|
||||
return bits | (random & ~mask);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue