Skip to content

If no seed given, use default random for seed#7597

Merged
headius merged 1 commit intojruby:masterfrom
headius:random_zero
Jan 26, 2023
Merged

If no seed given, use default random for seed#7597
headius merged 1 commit intojruby:masterfrom
headius:random_zero

Conversation

@headius
Copy link
Member

@headius headius commented Jan 25, 2023

Without initializing the seed array, this will return zero for all PRNG calls.

Fixes #7586

@headius headius added this to the JRuby 9.4.1.0 milestone Jan 25, 2023
Without initializing the seed array, this will return zero for all
PRNG calls.

Fixes jruby#7586
@headius headius merged commit 3a0c7d4 into jruby:master Jan 26, 2023
@headius headius deleted the random_zero branch January 26, 2023 15:21
@headius headius changed the title If no seed given, use current millis If no seed given, use default random for seed Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SecureRandom.random_number is always 0

1 participant