Asked 7 years ago
24 Jan 2017
Views 1297
ajamil

ajamil posted

Is Java SplittableRandom.split() threadsafe?

Is Java SplittableRandom.split() threadsafe?
Rasi

Rasi
answered Nov 30 '-1 00:00

SplittableRandom.split() will return new " SplittableRandom instance " which share no mutable state with this instance.

SplittableRandom.split() is not thread safe ,


Java Official doc says
Instances of SplittableRandom are not thread-safe. They are designed to be split, not shared
Post Answer