Skip to content

Random::fill not implemented in runtime (typescript) #5091

@reilly-freret

Description

@reilly-freret

the fill method is defined here,

// src/server/rng.ts
export interface Random {
// ...
  /**
   * Like `crypto.getRandomValues()`. Fills a `TypedArray` with random integers
   * in a uniform distribution, mutating and returning it.
   */
  fill<T extends IntArray>(array: T): T;
// ...
}

but at runtime, we see Uncaught TypeError: ctx.random.fill is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions