11#!python
22import numpy as np
33
4- from randomgen ._deprecated_value import _DeprecatedValue
5-
64__all__ = ["AESCounter" ]
75
86cdef uint64_t aes_uint64 (void * st ) noexcept nogil :
@@ -16,7 +14,7 @@ cdef double aes_double(void* st) noexcept nogil:
1614
1715cdef class AESCounter (BitGenerator ):
1816 """
19- AESCounter(seed=None, *, counter=None, key=None, mode="sequence" )
17+ AESCounter(seed=None, *, counter=None, key=None)
2018
2119 Container for the AES Counter pseudo-random number generator.
2220
@@ -37,12 +35,6 @@ cdef class AESCounter(BitGenerator):
3735 another RNG before use, the value in key is directly set. Can be either
3836 a Python int in [0, 2**128) or a 2-element uint64 array.
3937 key and seed cannot both be used.
40- mode : {None, "sequence"}
41- Deprecated parameter. Do not use.
42-
43- .. deprecated: 2.0.0
44-
45- Starting in version 2, only seed sequences are supported.
4638
4739 Attributes
4840 ----------
@@ -128,8 +120,8 @@ cdef class AESCounter(BitGenerator):
128120 .. [1] Advanced Encryption Standard. (n.d.). In Wikipedia. Retrieved
129121 June 1, 2019, from https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
130122 """
131- def __init__ (self , seed = None , * , counter = None , key = None , mode = _DeprecatedValue ):
132- BitGenerator .__init__ (self , seed , mode = mode )
123+ def __init__ (self , seed = None , * , counter = None , key = None ):
124+ BitGenerator .__init__ (self , seed )
133125 # Calloc since ctr needs to be 0
134126 self .rng_state = < aesctr_state_t * > PyArray_calloc_aligned (
135127 sizeof (aesctr_state_t ), 1
0 commit comments