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 27
27
import com .facebook .react .bridge .WritableMap ;
28
28
29
29
import java .io .IOException ;
30
+ import java .security .SecureRandom ;
30
31
import java .util .HashMap ;
31
32
import java .util .Map ;
32
- import java .util .Random ;
33
33
34
34
import android .util .Log ;
35
35
@@ -43,7 +43,7 @@ public class RNPushNotification extends ReactContextBaseJavaModule implements Ac
43
43
public static final String LOG_TAG = "RNPushNotification" ;// all logging should use this tag
44
44
45
45
private RNPushNotificationHelper mRNPushNotificationHelper ;
46
- private final Random mRandomNumberGenerator = new Random ( System . currentTimeMillis () );
46
+ private final SecureRandom mRandomNumberGenerator = new SecureRandom ( );
47
47
private RNPushNotificationJsDelivery mJsDelivery ;
48
48
49
49
public RNPushNotification (ReactApplicationContext reactContext ) {
@@ -61,6 +61,8 @@ public RNPushNotification(ReactApplicationContext reactContext) {
61
61
mRNPushNotificationHelper .checkOrCreateDefaultChannel ();
62
62
}
63
63
64
+
65
+
64
66
@ Override
65
67
public String getName () {
66
68
return "RNPushNotification" ;
You can’t perform that action at this time.
0 commit comments