Skip to content

Commit de0a9bb

Browse files
authored
Merge pull request #1088 from FireMasterK/pseudo-rng
Replace cryptographically secure random with regular random
2 parents 5492343 + 25082d7 commit de0a9bb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
import java.net.MalformedURLException;
5656
import java.net.URL;
5757
import java.nio.charset.StandardCharsets;
58-
import java.security.SecureRandom;
5958
import java.time.LocalDate;
6059
import java.time.OffsetDateTime;
6160
import java.time.ZoneOffset;
@@ -234,7 +233,7 @@ private YoutubeParsingHelper() {
234233
*/
235234
private static final String IOS_DEVICE_MODEL = "iPhone14,5";
236235

237-
private static Random numberGenerator = new SecureRandom();
236+
private static Random numberGenerator = new Random();
238237

239238
private static final String FEED_BASE_CHANNEL_ID =
240239
"https://www.youtube.com/feeds/videos.xml?channel_id=";

0 commit comments

Comments
 (0)