Generate better magic numbers

pull/8744/head
Alexander Zilberkant 2018-11-25 10:26:41 +02:00 committed by Oren Cohen
parent 53be3cccfc
commit ecd556b354
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@
#define IPC_RES_SEM_MAX_COUNT (1UL) // Maximum number of available tokens for an IPC result semaphore
#define IPC_RES_SEM_INITIAL_COUNT (0UL) // Initial number of available tokens for an IPC result semaphore
#define ADDR_TABLE_MAGIC 0xDEADBEEF
#define ADDR_TABLE_MAGIC 0x3d339a77
// NOTE: STRUCT SIZE MUST BE 4 BYTES ALIGNED !!

View File

@ -44,9 +44,9 @@
#define IPC_QUEUE_SLOTS 2
#endif
#define IPC_QUEUE_BASE_MAGIC 0xCAFEBABE
#define IPC_QUEUE_PRODUCER_MAGIC 0xDAC0FFEE
#define IPC_QUEUE_CONSUMER_MAGIC 0xFACEB00C
#define IPC_QUEUE_BASE_MAGIC 0x63284A0C
#define IPC_QUEUE_PRODUCER_MAGIC 0XA248D9FF
#define IPC_QUEUE_CONSUMER_MAGIC 0XA68B6542
#define IPC_QUEUE_WAIT_ON_FULL_MS 500
#define IPC_QUEUE_WAIT_ON_EMPTY_MS 500