fix + random doc id

This commit is contained in:
2023-11-03 15:51:32 +01:00
parent a1bf480b82
commit 7fff379d88
3 changed files with 19 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ namespace detail {
std::string to_hex(const Container& data) {
std::string res;
for (const uint8_t it : data) {
res += nib_to_hex(it << 4);
res += nib_to_hex(it >> 4);
res += nib_to_hex(it & 0x0f);
}
return res;
@@ -74,9 +74,7 @@ float CRDTNotesImGui::render(void) {
_notes.addDoc(
// tox id (id from self)
self_agent_id,
// random 32bytes?
{}
self_agent_id
);
// and open the doc