Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

checkpoint: File edit:

rUv7764b3b2df63
diff --git a/v3/@claude-flow/shared/src/core/event-bus.ts b/v3/@claude-flow/shared/src/core/event-bus.ts
index 37dafa2c3c..e6602ccaf9 100644
--- a/v3/@claude-flow/shared/src/core/event-bus.ts
+++ b/v3/@claude-flow/shared/src/core/event-bus.ts
@@ -11,6 +11,14 @@ import type {
IEventSubscription,
IEventFilter,
} from './interfaces/event.interface.js';
+import { randomBytes } from 'crypto';
+
+// Secure event ID generation
+function generateSecureEventId(): string {
+ const timestamp = Date.now().toString(36);
+ const random = randomBytes(12).toString('hex');
+ return `evt_${timestamp}_${random}`;
+}
/**
* Event subscription implementation