Diff between ff70f24b3162e7c0e8bebb6a80824cfbd4946ce3 and a729fe0de9376759680c793adc0af6f490e954c1
Changed Files
| File | Additions | Deletions | Status |
| emulator/smp.c | +2 | -0 | modified |
Full Patch
diff --git a/emulator/smp.c b/emulator/smp.c
index 7c05ba3..f339e15 100644
--- a/emulator/smp.c
+++ b/emulator/smp.c
@@ -857,6 +857,8 @@ void *smp_conn_add(void *smp_data, uint16_t handle, const uint8_t *ia,
memcpy(conn->ia, ia, 6);
memcpy(conn->ra, ra, 6);
+ bt_crypto_random_bytes(smp->crypto, conn->prnd, sizeof(conn->prnd));
+
return conn;
}