-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: BSON
-
None
Building bson-ruby 5 on a BSD system will use the superior arc4random utility to generate cryptographically secure random numbers. Without that, the ObjectId generation code falls back to the inferior rand() function.
GitHub user midnight-wonderer has submitted a PR that allows arc4random to be linked and used on non-BSD systems if the libbsd library is present.
- is related to
-
RUBY-3306 Investigate using Ruby's internal random utility instead of rand for ObjectId's
- Closed