Skip to content

Commit

Permalink
fix: random generator using wp_rand
Browse files Browse the repository at this point in the history
  • Loading branch information
affrncsp committed Mar 14, 2024
1 parent 830ecfa commit 4bf0998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function affinidi_get_user_redirect_url(): string
}

// generate random state
$state = md5( mt_rand() . microtime( true ) );
$state = md5( wp_rand() . microtime( true ) );
// store redirect_to transient info to options
$affinidi_state_values = array(
$state => array(
Expand Down

0 comments on commit 4bf0998

Please sign in to comment.