mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
chromatics/cgc7900.cpp, konami/konamim2.cpp, quantel/dpb7000.cpp: replace rand() -> machine().rand(), fix coverity scan CID 375713 violations
This commit is contained in:
parent
ee3425dfbd
commit
1ad2eb2fd5
@ -310,7 +310,7 @@ void cgc7900_state::disk_command_w(u16 data)
|
||||
|
||||
u16 cgc7900_state::unmapped_r()
|
||||
{
|
||||
return rand();
|
||||
return machine().rand();
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
|
@ -490,7 +490,7 @@ uint16_t konamim2_state::konami_io0_r(offs_t offset)
|
||||
case 8: return ioport("P5")->read();
|
||||
}
|
||||
|
||||
//return rand();
|
||||
//return machine().rand();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -3425,7 +3425,7 @@ uint8_t dpb7000_state::tablet_rdl_r()
|
||||
//if (m_tablet_mux == 3)
|
||||
//m_tablet_state = 0;
|
||||
|
||||
m_tablet_counter_latch = rand() & 0xfff;
|
||||
m_tablet_counter_latch = machine().rand() & 0xfff;
|
||||
LOGMASKED(LOG_TABLET, "%s: Random latch: %04x\n", machine().describe_context(), m_tablet_counter_latch);
|
||||
uint8_t data = (uint8_t)m_tablet_counter_latch;
|
||||
LOGMASKED(LOG_TABLET, "%s: Tablet RDL Read (Mux %d): %02x\n", machine().describe_context(), m_tablet_mux, data);
|
||||
|
Loading…
Reference in New Issue
Block a user