Skip to content

Extends random.h: numeric types relaxed to compatible types (with - #20670

Merged
tchaikov merged 1 commit into
ceph:masterfrom
chardan:jfw-wip-rand_migration-core
Apr 13, 2018
Merged

tchaikov merged 1 commit into
ceph:masterfrom
chardan:jfw-wip-rand_migration-core

Conversation

@chardan

@chardan chardan commented Mar 1, 2018 •

Copy link
Copy Markdown
Contributor

Extends random.h: numeric types relaxed to compatible types (with appropriate distributions), fixes 2-parameter calling convention; OOP interface now publishes engine and device types and allows
appropriate seed types.

These changes are the result of direct experience porting Ceph code away from rand(), and a prerequisite for that further porting. They should be backward-compatible with the currently-published API.

These changes supercede "#18333".

Signed-off-by: Jesse Williamson [email protected]

@chardan
chardan force-pushed the jfw-wip-rand_migration-core branch from 4574f56 to 5c3d046 Compare March 1, 2018 14:17
@chardan chardan self-assigned this Mar 1, 2018
@chardan
chardan requested review from adamemerson and cbodley March 1, 2018 14:19
@chardan
chardan force-pushed the jfw-wip-rand_migration-core branch from 5c3d046 to 337e98b Compare March 1, 2018 14:20
appropriate distributions), fixes 2-parameter calling convention;
OOP interface now publishes engine and device types and allows
appropriate seed types.

These changes are the result of direct experience porting Ceph
code away from rand(), and a prerequisite for that further porting.

Signed-off-by: Jesse Williamson <[email protected]>

@adamemerson adamemerson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks excellent to me.

@chardan

chardan commented Apr 10, 2018

Copy link
Copy Markdown
Contributor Author

ping... any further comments here?

@adamemerson

Copy link
Copy Markdown
Contributor

I am happy with it.

@tchaikov
tchaikov merged commit 6ad4bf0 into ceph:master Apr 13, 2018
@cbodley

cbodley commented Apr 20, 2018

Copy link
Copy Markdown
Contributor

this pr appears to have broken the messenger. i'm seeing all clients generate the same random 'nonce', so servers can't distinguish between clients with the same address. did we break something with the seeding on first use? more at http://tracker.ceph.com/issues/23778

@cbodley

cbodley commented Apr 20, 2018

Copy link
Copy Markdown
Contributor

opened #21567 to revert the change from boost::optional to std::optional

@cbodley cbodley mentioned this pull request Dec 9, 2024
4 of 14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants