Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
ae5695fc
Commit
ae5695fc
authored
10 years ago
by
Jaime Perez Crespo
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated parameter from SimpleSAML_Utilities::generateRandomBytes().
parent
07905af1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Utilities.php
+2
-3
2 additions, 3 deletions
lib/SimpleSAML/Utilities.php
with
2 additions
and
3 deletions
lib/SimpleSAML/Utilities.php
+
2
−
3
View file @
ae5695fc
...
@@ -1042,13 +1042,12 @@ class SimpleSAML_Utilities {
...
@@ -1042,13 +1042,12 @@ class SimpleSAML_Utilities {
* This function generates a binary string containing random bytes.
* This function generates a binary string containing random bytes.
*
*
* It is implemented as a wrapper of the openssl_random_pseudo_bytes function,
* It is implemented as a wrapper of the openssl_random_pseudo_bytes function,
* available since PHP 5.3.0.
* available since PHP 5.3.0.
*
*
* @param int $length The number of random bytes to return.
* @param int $length The number of random bytes to return.
* @param boolean $fallback Deprecated.
* @return string A string of $length random bytes.
* @return string A string of $length random bytes.
*/
*/
public
static
function
generateRandomBytes
(
$length
,
$fallback
=
TRUE
)
{
public
static
function
generateRandomBytes
(
$length
)
{
assert
(
'is_int($length)'
);
assert
(
'is_int($length)'
);
return
openssl_random_pseudo_bytes
(
$length
);
return
openssl_random_pseudo_bytes
(
$length
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment