PYTHON-5883Backlog

Add API to create BSON ObjectID from timestamp while retaining random bytes

h3. *Context* With the Go bson package I can do: and the generated ObjectID retains its randomness after the timestamp. When I try: with PyMongo's bson package, I consistently get the same “random” bits back. This is the expected behavior according to the [docs,|https://pymongo.readthedocs.io/en/stable/api/bson/objectid.html#bson.objectid.ObjectId] but I think it would be great to provide an API that mimics how Go's API works so that ObjectIDs with an external timestamp source c

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.