Skip to content

Commit c88c97b

Browse files
committed
Remove Random ID generator. Use IDValue::generateID() instead
1 parent aa82173 commit c88c97b

2 files changed

Lines changed: 1 addition & 24 deletions

File tree

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,10 @@ Example:
5959
// Create Issuer
6060
$issuer = new \SimpleSAML\SAML2\XML\saml\Issuer('https://sp.example.edu');
6161

62-
// Instantiate SAML2 Random utils
63-
$randomUtils = new \SimpleSAML\SAML2\Utils\Random();
64-
6562
// Set up an AuthnRequest
6663
$request = new \SimpleSAML\SAML2\XML\samlp\AuthnRequest(
6764
$issuer,
68-
$randomUtils->generateId(),
65+
IDValue::generateId(),
6966
null,
7067
'https://idp.example.edu'
7168
);

src/Utils/Random.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)