summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/ne2000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/isa/ne2000.cpp')
-rw-r--r--src/devices/bus/isa/ne2000.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/bus/isa/ne2000.cpp b/src/devices/bus/isa/ne2000.cpp
index d53564cb59f..82997bb38d0 100644
--- a/src/devices/bus/isa/ne2000.cpp
+++ b/src/devices/bus/isa/ne2000.cpp
@@ -27,7 +27,7 @@ ne2000_device::ne2000_device(const machine_config& mconfig, const char* tag, dev
void ne2000_device::device_start() {
char mac[7];
- uint32_t num = rand();
+ uint32_t num = machine().rand();
memset(m_prom, 0x57, 16);
sprintf(mac+2, "\x1b%c%c%c", (num >> 16) & 0xff, (num >> 8) & 0xff, num & 0xff);
mac[0] = 0; mac[1] = 0; // avoid gcc warning