Page MenuHomeFreeBSD

libkern: Add arc4random_uniform
ClosedPublic

Authored by manu on May 22 2020, 5:21 PM.
Tags
None
Referenced Files
F109636906: D24962.id72170.diff
Fri, Feb 7, 7:42 PM
F109624441: D24962.id72170.diff
Fri, Feb 7, 3:20 PM
Unknown Object (File)
Thu, Feb 6, 6:21 PM
Unknown Object (File)
Thu, Feb 6, 3:16 PM
Unknown Object (File)
Wed, Feb 5, 6:30 PM
Unknown Object (File)
Wed, Feb 5, 3:21 PM
Unknown Object (File)
Tue, Feb 4, 3:11 PM
Unknown Object (File)
Mon, Feb 3, 6:10 PM
Subscribers

Details

Summary

This variant get a random number up to the limit passed as the argument.
This is simply a copy of the libc version.

Sponsored-by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Hm, libc version is (or was) a separate file with a different copyright. Usual pattern in libkern is to just copy the libc files to libkern verbatim and only fixup as needed to compile. I don't know that we always have to do that, but we should at least confirm the arc4random_uniform copyright follows the code.

In D24962#549612, @cem wrote:

Hm, libc version is (or was) a separate file with a different copyright. Usual pattern in libkern is to just copy the libc files to libkern verbatim and only fixup as needed to compile. I don't know that we always have to do that, but we should at least confirm the arc4random_uniform copyright follows the code.

Right, I didn't pay attention to the licence of the file when I opened it. I'll fix that in a bit

This revision is now accepted and ready to land.May 22 2020, 6:06 PM
This revision now requires review to proceed.May 23 2020, 12:08 PM
This revision is now accepted and ready to land.May 23 2020, 4:09 PM
This revision was automatically updated to reflect the committed changes.