Skip to content

Commit

Permalink
implement ObjectID.from_random
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmoritz committed Aug 27, 2017
1 parent c044954 commit 36f67d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/pyarrow/plasma.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ cdef class ObjectID:
"""
return self.data.binary()

@staticmethod
def from_random():
cdef ObjectID result
result.data = CUniqueID.from_random()
return result


cdef class ObjectNotAvailable:
"""
Expand Down

0 comments on commit 36f67d6

Please sign in to comment.