Skip to content

Commit

Permalink
Add forward to rng
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Aug 31, 2022
1 parent f03ca61 commit c69f900
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/ecl/util/util/rng.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class RandomNumberGenerator(BaseCClass):
_free = EclPrototype("void rng_free(rng)")
_get_double = EclPrototype("double rng_get_double(rng)")
_get_int = EclPrototype("int rng_get_int(rng, int)")
_forward = EclPrototype("uint rng_forward(rng)")
_get_max_int = EclPrototype("uint rng_get_max_int(rng)")
_state_size = EclPrototype("int rng_state_size(rng)")
_set_state = EclPrototype("void rng_set_state(rng , char*)")
Expand Down Expand Up @@ -66,6 +67,9 @@ def getInt(self, max=None):

return self._get_int(max)

def forward(self):
return self._forward()

def free(self):
self._free()

Expand Down

0 comments on commit c69f900

Please sign in to comment.