aboutsummaryrefslogtreecommitdiff
path: root/src/grid/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/grid/node.c')
-rw-r--r--src/grid/node.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/grid/node.c b/src/grid/node.c
index 16cce1b..df237c7 100644
--- a/src/grid/node.c
+++ b/src/grid/node.c
@@ -56,6 +56,9 @@ static stat port_receive(struct port *port, struct packet pkt)
static stat grid_receive(struct grid_node *grid, struct component *from, struct packet pkt)
{
+ if (rand() % 256 == 0)
+ return EBUSY;
+
uint16_t x;
uint16_t y;
uint64_t addr = pkt.to;