This repository was archived by the owner on Jan 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
android/src/main/java/com/dieam/reactnativepushnotification/modules Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2727import com .facebook .react .bridge .WritableMap ;
2828
2929import java .io .IOException ;
30+ import java .security .SecureRandom ;
3031import java .util .HashMap ;
3132import java .util .Map ;
32- import java .util .Random ;
3333
3434import android .util .Log ;
3535
@@ -43,7 +43,7 @@ public class RNPushNotification extends ReactContextBaseJavaModule implements Ac
4343 public static final String LOG_TAG = "RNPushNotification" ;// all logging should use this tag
4444
4545 private RNPushNotificationHelper mRNPushNotificationHelper ;
46- private final Random mRandomNumberGenerator = new Random ( System . currentTimeMillis () );
46+ private final SecureRandom mRandomNumberGenerator = new SecureRandom ( );
4747 private RNPushNotificationJsDelivery mJsDelivery ;
4848
4949 public RNPushNotification (ReactApplicationContext reactContext ) {
@@ -61,6 +61,8 @@ public RNPushNotification(ReactApplicationContext reactContext) {
6161 mRNPushNotificationHelper .checkOrCreateDefaultChannel ();
6262 }
6363
64+
65+
6466 @ Override
6567 public String getName () {
6668 return "RNPushNotification" ;
You can’t perform that action at this time.
0 commit comments