Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2025-01-17 08:26:34 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bee3fc2d8c7ebd3d0e5fa03c4a78c5dc9da3f2fa
bee3fc2d
1 parent
426086f6
Use secure random number generator for document ID generation
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
pdf/CHANGELOG.md
pdf/lib/src/pdf/document.dart
pdf/CHANGELOG.md
View file @
bee3fc2
...
...
@@ -9,6 +9,7 @@
-
Add support for creating PDF/A 3b
[
ilaurillard
]
-
Add helper functions to replace text styles and cell content
[
Brian Kayfitz
]
-
Fix TextStyle merge decoration
[
AtlasAutocode
]
-
Use secure random number generator for document ID generation
## 3.11.1
...
...
pdf/lib/src/pdf/document.dart
View file @
bee3fc2
...
...
@@ -177,7 +177,7 @@ class PdfDocument {
/// Generates the document ID
Uint8List
get
documentID
{
if
(
_documentID
==
null
)
{
final
rnd
=
math
.
Random
();
final
rnd
=
math
.
Random
.
secure
();
_documentID
=
Uint8List
.
fromList
(
sha256
.
convert
(
DateTime
.
now
().
toIso8601String
().
codeUnits
+
List
<
int
>.
generate
(
32
,
(
_
)
=>
rnd
.
nextInt
(
256
)))
...
...
Please
register
or
login
to post a comment