Skip to content

Commit 36f67d6

Browse files
committed
implement ObjectID.from_random
1 parent c044954 commit 36f67d6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

python/pyarrow/plasma.pyx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ cdef class ObjectID:
159159
"""
160160
return self.data.binary()
161161

162+
@staticmethod
163+
def from_random():
164+
cdef ObjectID result
165+
result.data = CUniqueID.from_random()
166+
return result
167+
162168

163169
cdef class ObjectNotAvailable:
164170
"""

0 commit comments

Comments
 (0)