The Random component should provide an interface

Created on 2 May 2018, about 7 years ago
Updated 23 January 2023, over 2 years ago

Problem/Motivation

Since the \Drupal\Component\Utility\Random component can be used outside of this project, and folks might wish to implement their own logic on top of a random generator, it would be nice to have this component provide a RandomInterface that projects could rely on instead of hard-coding the specific class. See https://github.com/jhedstrom/DrupalDriver/pull/3 for instance.

Proposed resolution

Add a RandomInterface.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Postponed: needs info

Version

10.1

Component
Base 

Last updated 8 minutes ago

Created by

🇺🇸United States jhedstrom Portland, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024