Added debugging option --disable-random-id.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-11-21 18:17:51 +01:00
parent 5d71e69941
commit 2569b09dbe
3 changed files with 10 additions and 0 deletions
+2
View File
@@ -575,6 +575,8 @@ void Packer::copyOverlay(OutputFile *fo, unsigned overlay,
// Create a pseudo-unique program id.
unsigned Packer::getRandomId() const
{
if (opt->debug.disable_random_id)
return 0x01020304;
unsigned id = 0;
#if 0 && defined(__unix__)
// Don't consume precious bytes from /dev/urandom.