summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/imgtool.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2017-07-30 07:22:25 -0400
committer Vas Crabb <cuavas@users.noreply.github.com>2017-07-30 21:58:58 +1000
commitc04cc607020444609f49edb80912af75a627982b (patch)
tree6136711a52b9e2ca64a4c60a3366e0854ab04d08 /src/tools/imgtool/imgtool.cpp
parenta547f50134fadf31b5efa20a55e1daef44e466f4 (diff)
Imgtool: Eliminated Imgtool-specific rand() function
Diffstat (limited to 'src/tools/imgtool/imgtool.cpp')
-rw-r--r--src/tools/imgtool/imgtool.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/tools/imgtool/imgtool.cpp b/src/tools/imgtool/imgtool.cpp
index 15697f0dea4..f53c9e29810 100644
--- a/src/tools/imgtool/imgtool.cpp
+++ b/src/tools/imgtool/imgtool.cpp
@@ -542,22 +542,6 @@ void *imgtool::image::malloc(size_t size)
}
-//-------------------------------------------------
-// imgtool::image::rand - returns a random number
-//-------------------------------------------------
-
-uint64_t imgtool::image::rand()
-{
- // we can't use mame_rand() here
-#ifdef rand
-#undef rand
-#endif
- return ((uint64_t) std::rand()) << 32
- | ((uint64_t)std::rand()) << 0;
-}
-
-
-
/***************************************************************************
Imgtool partition management