Skip to content

Commit

Permalink
Remove unused Random from net.Utils, expose Hex in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
masonticehurst committed Feb 20, 2024
1 parent 5a440c4 commit 8488d15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions eRINA_STM32F7/src/net/net-utils.adb
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@
with Interfaces;
package body Net.Utils is

function Hex (Value : in Uint8) return String;
function Image (Value : in Uint8) return String;

Hex_String : constant String := "0123456789ABCDEF";

-- Get a 32-bit random number.
function Random return Uint32 is separate;

function Hex (Value : in Uint8) return String is
use Interfaces;

Expand Down
8 changes: 4 additions & 4 deletions eRINA_STM32F7/src/net/net-utils.ads
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
-----------------------------------------------------------------------
package Net.Utils is

pragma Preelaborate;

-- Convert the IPv4 address to a dot string representation.
function To_String (Ip : in Ip_Addr) return String;

-- Convert the Ethernet address to a string representation.
function To_String (Mac : in Ether_Addr) return String;

-- Get a 32-bit random number.
function Random return Uint32;


function Hex (Value : in Uint8) return String;
end Net.Utils;

0 comments on commit 8488d15

Please sign in to comment.