Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
22344e39
Commit
22344e39
authored
Feb 22, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Project] Generate UUIDs without SecureRandom
parent
7eae6d48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
project.rb
lib/cocoapods/project.rb
+9
-0
No files found.
lib/cocoapods/project.rb
View file @
22344e39
...
@@ -40,6 +40,15 @@ module Pod
...
@@ -40,6 +40,15 @@ module Pod
#
#
attr_reader
:development_pods
attr_reader
:development_pods
# Overridden to generate UUIDs in a much faster way, since we don't need to check for collisions
# (as the Pods project is regenerated each time, and thus all UUIDs will have come from this method)
def
generate_available_uuid_list
(
count
=
100
)
start
=
@generated_uuids
.
size
uniques
=
Array
.
new
(
count
)
{
|
i
|
format
(
'%011X0'
,
start
+
i
)
}
@generated_uuids
+=
uniques
@available_uuids
+=
uniques
end
public
public
# @!group Legacy Xcode build root
# @!group Legacy Xcode build root
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment