Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Apr 13, 2018

Conversation

chardan
Copy link
Contributor

@chardan chardan commented Mar 1, 2018

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 jwilliamson@suse.de

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 <jwilliamson@suse.de>
Copy link
Contributor

@adamemerson adamemerson left a comment

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
Copy link
Contributor Author

chardan commented Apr 10, 2018

ping... any further comments here?

@adamemerson
Copy link
Contributor

I am happy with it.

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

cbodley commented Apr 20, 2018

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
Copy link
Contributor

cbodley commented Apr 20, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants