You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove small_rng feature, thus enabling SmallRng by default and in all builds.
Motivation
Less complexity. Removes a trip-hazard for new users: #1225
If I remember correctly, the motivation for feature-gating adding small_rng was to remove a dependency from builds which don't use it. Later, we decided to add std_rng for the same reason (even though ThreadRng requires it).
We now define the two possible implementations of SmallRng in crate (around 250 LoC). If we changed the impl again, we'd very likely continue to do so (it would be unlikely to use more code).
The additional (small) cost is that SmallRng must be compiled in all builds; linking should remove unused code thus not affecting binary size.
The text was updated successfully, but these errors were encountered:
Summary
Remove
small_rng
feature, thus enablingSmallRng
by default and in all builds.Motivation
Less complexity. Removes a trip-hazard for new users: #1225
If I remember correctly, the motivation for feature-gating adding
small_rng
was to remove a dependency from builds which don't use it. Later, we decided to addstd_rng
for the same reason (even thoughThreadRng
requires it).We now define the two possible implementations of
SmallRng
in crate (around 250 LoC). If we changed the impl again, we'd very likely continue to do so (it would be unlikely to use more code).The additional (small) cost is that
SmallRng
must be compiled in all builds; linking should remove unused code thus not affecting binary size.The text was updated successfully, but these errors were encountered: