Skip to content

Commit 3077f46

Browse files
committed
rand_dist docs: clarify real determinism
1 parent ba3ddad commit 3077f46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/itlib/rand_dist.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@
5757
// Uniform distribution for floating point numbers in the range [min, max)
5858
// Guaranteed to draw a single value from the RNG
5959
// Note that it's not deterministic in the same sense as the others, as it
60-
// relies on std::fma which may have different implementations on
61-
// different hardware platforms.
62-
// It is "slightly" deterministic in that it will produce the same output
63-
// sequence when run on the same type of FPU and floating point mode.
60+
// relies on floating point arithmetic which may have produce different
61+
// results depending on compiler options.
62+
// It is "almost" deterministic in that it will produce the same output
63+
// sequence when run without -ffast-math or similar optimizations.
6464
//
6565
//
6666
// You can find unit tests in the official repo:

0 commit comments

Comments
 (0)