Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EzPC-Custom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rasoul Akhavan Mahdavi
EzPC-Custom
Commits
fd9910f5
Commit
fd9910f5
authored
4 years ago
by
Deevashwer
Browse files
Options
Downloads
Patches
Plain Diff
Bug in cmake script for machines that don't support rdseed
parent
a5eea754
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SCI/src/utils/CMakeLists.txt
+4
-0
4 additions, 0 deletions
SCI/src/utils/CMakeLists.txt
SCI/src/utils/cmake/source_of_randomness.cmake
+0
-1
0 additions, 1 deletion
SCI/src/utils/cmake/source_of_randomness.cmake
with
4 additions
and
1 deletion
SCI/src/utils/CMakeLists.txt
+
4
−
0
View file @
fd9910f5
...
...
@@ -6,6 +6,10 @@ find_package(GMP REQUIRED)
add_library
(
SCI-utils INTERFACE
)
if
(
USE_RANDOM_DEVICE
)
target_compile_definitions
(
SCI-utils INTERFACE EMP_USE_RANDOM_DEVICE=1
)
endif
(
USE_RANDOM_DEVICE
)
target_include_directories
(
SCI-utils
INTERFACE
${
OPENSSL_INCLUDE_DIR
}
${
GMP_INCLUDE_DIR
}
)
...
...
This diff is collapsed.
Click to expand it.
SCI/src/utils/cmake/source_of_randomness.cmake
+
0
−
1
View file @
fd9910f5
...
...
@@ -18,7 +18,6 @@ ELSE(NOT ${RDSEED_COMPILE_RESULT})
ENDIF
(
NOT
${
RDSEED_COMPILE_RESULT
}
)
IF
(
${
USE_RANDOM_DEVICE
}
)
ADD_DEFINITIONS
(
-DEMP_USE_RANDOM_DEVICE
)
message
(
"
${
Red
}
-- Source of Randomness: random_device
${
ColourReset
}
"
)
ELSE
(
${
USE_RANDOM_DEVICE
}
)
message
(
"
${
Green
}
-- Source of Randomness: rdseed
${
ColourReset
}
"
)
...
...
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