Skip to content

Generate tuple tree ids from a key stream instead of a recoverable linear congruential generator - #8989

Merged
rzo1 merged 1 commit into
masterfrom
fix/message-id-random-source
Aug 22, 2026
Merged

Generate tuple tree ids from a key stream instead of a recoverable linear congruential generator#8989
rzo1 merged 1 commit into
masterfrom
fix/message-id-random-source

Conversation

@rzo1

@rzo1 rzo1 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

MessageId.generateId drew from java.util.Random, a 48-bit linear congruential generator whose internal state can be recovered from two consecutive outputs, making subsequent ids predictable.

Replaced with a key-stream generator that subclasses java.util.Random, so Executor.rand and MessageId.generateId(Random) are unchanged. Adds MessageIdTest and extends SpoutExecutorTest.

@rzo1 rzo1 added this to the 3.1.0 milestone Aug 21, 2026
@rzo1 rzo1 self-assigned this Aug 21, 2026
@rzo1
rzo1 force-pushed the fix/message-id-random-source branch from db1ab8f to 2a41a03 Compare August 22, 2026 16:54
@rzo1
rzo1 merged commit c1c3338 into master Aug 22, 2026
7 checks passed
@rzo1
rzo1 deleted the fix/message-id-random-source branch August 22, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants