You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewTypeError(format('invalid argument. Second argument must have one of the following data types: "%s". Data type: `%s`.',join(this._idtypes,'", "'),dt));
// If provided a scalar PRNG parameter, we can simply fill a linear buffer with pseudorandom values (as all pseudorandom values are drawn from the same PRNG) and then wrap as an ndarray...
313
320
if(FLG){
314
-
if(dt==='generic'){
321
+
if(isEqualDataType(dt,'generic')){
315
322
buf=filledBy(len,wrapper);
316
323
}else{
317
324
buf=buffer(dt,len);
@@ -415,11 +422,11 @@ setReadOnly( Random.prototype, 'assign', function assign( param1, out ) {
thrownewTypeError(format('invalid argument. First argument must have one of the following data types: "%s". Data type: `%s`.',join(this._idtypes,'", "'),pdt));
420
427
}
421
428
odt=getDType(out);
422
-
if(!contains(this._odtypes,odt)){
429
+
if(!contains(this._odtypes,resolveStr(odt))){
423
430
thrownewTypeError(format('invalid argument. Second argument must have one of the following data types: "%s". Data type: `%s`.',join(this._odtypes,'", "'),odt));
424
431
}
425
432
// Fill the output array with pseudorandom values:
0 commit comments