Skip to content

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

Open
rzo1 wants to merge 1 commit into
masterfrom
fix/message-id-random-source
Open

Generate tuple tree ids from a key stream instead of a recoverable linear congruential generator#8989
rzo1 wants to merge 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
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.

1 participant