Skip to content

Commit

Permalink
Fix signature of UintBetween generator functions (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingmidas74 authored Feb 28, 2023
1 parent 498a0ce commit 4d15ef2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions faker.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,23 +199,23 @@ func (f Faker) UIntBetween(min, max uint) uint {
}

// UInt8Between returns a fake UInt8 between a given minimum and maximum values for Faker
func (f Faker) UInt8Between(min, max int8) uint8 {
return uint8(f.IntBetween(int(min), int(max)))
func (f Faker) UInt8Between(min, max uint8) uint8 {
return uint8(f.UIntBetween(uint(min), uint(max)))
}

// UInt16Between returns a fake UInt16 between a given minimum and maximum values for Faker
func (f Faker) UInt16Between(min, max int16) uint16 {
return uint16(f.IntBetween(int(min), int(max)))
func (f Faker) UInt16Between(min, max uint16) uint16 {
return uint16(f.UIntBetween(uint(min), uint(max)))
}

// UInt32Between returns a fake UInt32 between a given minimum and maximum values for Faker
func (f Faker) UInt32Between(min, max uint32) uint32 {
return uint32(f.IntBetween(int(min), int(max)))
return uint32(f.UIntBetween(uint(min), uint(max)))
}

// UInt64Between returns a fake UInt64 between a given minimum and maximum values for Faker
func (f Faker) UInt64Between(min, max uint64) uint64 {
return uint64(f.IntBetween(int(min), int(max)))
return uint64(f.UIntBetween(uint(min), uint(max)))
}

// Letter returns a fake single letter for Faker
Expand Down

0 comments on commit 4d15ef2

Please sign in to comment.