src/Store.php
protected function generate_session_id() {
		$length = 40;

		require_once ABSPATH . 'wp-includes/class-phpass.php';
		$bytes = ( new \PasswordHash( 8, false ) )->get_random_bytes( $length * 2 );

		return substr( str_replace( [ '/', '+', '=' ], '', base64_encode( $bytes ) ), 0, $length );
	}
protected function generate_session_id() {
		$length = 40;

		require_once ABSPATH . 'wp-includes/class-phpass.php';
		$bytes = ( new \PasswordHash( 8, false ) )->get_random_bytes( $length * 2 );

		return substr( str_replace( [ '/', '+', '=' ], '', base64_encode( $bytes ) ), 0, $length );
	}
protected function generate_session_id ( ) { $ length = 40 ; require_once ABSPATH . 'wp-includes/class-phpass.php' ; $ bytes = ( new \ PasswordHash ( 8 , false ) ) -> get_random_bytes ( $ length * 2 ) ; return substr ( str_replace ( [ '/' , '+' , '=' ] , '' , base64_encode ( $ bytes ) ) , 0 , $ length ) ; }
Get a new, random session ID.

@return string
Get a new random session ID .