Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update comment on Random class #9

Merged
merged 4 commits into from
Apr 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- bundle config --local path vendor/bundle
- gem install bundler --quiet --no-ri --no-rdoc
- gem install github_changelog_generator --quiet --no-ri --no-rdoc
# - bundle install
- choco install gitversion.portable -pre -y
Expand Down Expand Up @@ -147,7 +146,7 @@
before_build:
- ps: >-

nuget restore source\nanoFramework.CoreLibrary.Nuget.sln
nuget restore source\nanoFramework.CoreLibrary.sln

gitversion /l console /output buildserver /updateAssemblyInfo AssemblyInfo2.cs /ensureassemblyinfo

Expand Down Expand Up @@ -256,7 +255,7 @@
before_build:
- ps: >-

nuget restore source\nanoFramework.CoreLibrary.Nuget.sln
nuget restore source\nanoFramework.CoreLibrary.sln

gitversion /l console /output buildserver /updateAssemblyInfo AssemblyInfo2.cs /ensureassemblyinfo

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@
<Folder Include="content\" />
</ItemGroup>
<ItemGroup>
<Content Include="..\bin\$(Configuration)\mscorlib.dll">
<Link>content\mscorlib.dll</Link>
</Content>
<Content Include="..\bin\$(Configuration)\mscorlib.pdb">
<Link>content\mscorlib.pdb</Link>
</Content>
<Content Include="..\bin\$(Configuration)\mscorlib.pdbx">
<Link>content\mscorlib.pdbx</Link>
</Content>
<Content Include="..\bin\$(Configuration)\mscorlib.pe">
<Link>content\mscorlib.pe</Link>
</Content>
<Content Include="..\bin\$(Configuration)\mscorlib.xml">
<Link>content\mscorlib.xml</Link>
</Content>
<Content Include="..\bin\$(Configuration)\Stubs\*.*">
<Link>content\Stubs\%(RecursiveDir)%(Filename)%(Extension)</Link>
</Content>
Expand Down Expand Up @@ -65,7 +50,7 @@
<Description>** DON'T REFERENCE THIS PACKAGE ** Not meant for development. This package includes the deliverable artifacts of the base class library (mscorlib) of nanoFramework. These are for testing purposes and for updating the native code base of the core library.</Description>
<ReleaseNotes>
</ReleaseNotes>
<ProjectUrl>https://github.com/nanoframework/nf-class-libraries</ProjectUrl>
<ProjectUrl>https://github.com/nanoframework/lib-CoreLibrary</ProjectUrl>
<LicenseUrl>
</LicenseUrl>
<Copyright>Copyright (c) 2017 The nanoFramework project contributors</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<Folder Include="lib\" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>96eaba11-6a33-454d-a7b2-b96ca5617e8c</ProjectGuid>
<ProjectGuid>dd773430-fe47-443c-b2eb-4f1dc0b7e52d</ProjectGuid>
</PropertyGroup>
<PropertyGroup>
<NuProjPath>..\packages\NuProj.0.20.4-beta\tools\</NuProjPath>
Expand Down
13 changes: 11 additions & 2 deletions source/System/Random.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,25 @@
namespace System
{
/// <summary>
/// Represents a pseudo-random number generator, a device that produces a
/// Represents a random number generator, a device that produces a
/// sequence of numbers that meet certain statistical requirements for
/// randomness.
/// </summary>
/// <remarks>
/// Depending on the platform it can be a software dependent pseudo-random generator algorithm
/// or a hardware random generator providing true random numbers.
/// </remarks>
public class Random
{
// this field needs to be here because it's required for the native implementation
#pragma warning disable 0169
private object _random;
#pragma warning restore 0169


/// <summary>
/// Initializes a new instance of the Random class, using a time-
/// Initializes a new instance of the Random class.
/// If the provider is algorithm based the initialisation is performed using a time-
/// dependent default seed value.
/// </summary>
[MethodImpl(MethodImplOptions.InternalCall)]
Expand Down
17 changes: 6 additions & 11 deletions source/nanoFramework.CoreLibrary.Nuget.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,20 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2010
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "nanoFramework.CoreLibrary", "Nuget.CoreLibrary\nanoFramework.CoreLibrary.nuproj", "{96EABA11-6A33-454D-A7B2-B96CA5617E8C}"
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.CoreLibrary", "Nuget.CoreLibrary\Nuget.CoreLibrary.nuproj", "{DD773430-FE47-443C-B2EB-4F1DC0B7E52D}"
EndProject
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "nanoFramework.CoreLibrary.DELIVERABLES", "Nuget.CoreLibrary.DELIVERABLES\nanoFramework.CoreLibrary.DELIVERABLES.nuproj", "{8FD36AD6-387C-48F0-A695-52D9149216FB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{7A280E23-EB14-4791-B9E7-4ECB6C84D7B8}"
ProjectSection(SolutionItems) = preProject
packages.config = packages.config
EndProjectSection
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "Nuget.CoreLibrary.DELIVERABLES", "Nuget.CoreLibrary.DELIVERABLES\Nuget.CoreLibrary.DELIVERABLES.nuproj", "{8FD36AD6-387C-48F0-A695-52D9149216FB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{96EABA11-6A33-454D-A7B2-B96CA5617E8C}.Release|Any CPU.Build.0 = Release|Any CPU
{DD773430-FE47-443C-B2EB-4F1DC0B7E52D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DD773430-FE47-443C-B2EB-4F1DC0B7E52D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DD773430-FE47-443C-B2EB-4F1DC0B7E52D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DD773430-FE47-443C-B2EB-4F1DC0B7E52D}.Release|Any CPU.Build.0 = Release|Any CPU
{8FD36AD6-387C-48F0-A695-52D9149216FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8FD36AD6-387C-48F0-A695-52D9149216FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8FD36AD6-387C-48F0-A695-52D9149216FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
5 changes: 5 additions & 0 deletions source/nanoFramework.CoreLibrary.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ VisualStudioVersion = 15.0.27130.2010
MinimumVisualStudioVersion = 10.0.40219.1
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "CoreLibrary", "CoreLibrary.nfproj", "{BE7B95D5-087C-45F8-8197-4B438BEDFE11}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{7A280E23-EB14-4791-B9E7-4ECB6C84D7B8}"
ProjectSection(SolutionItems) = preProject
packages.config = packages.config
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down